From d4f5e6a640b219cc9d5db6d74439b18e107b4545 Mon Sep 17 00:00:00 2001 From: Franklin Date: Wed, 3 May 2023 12:59:43 -0400 Subject: [PATCH] fixed some issues with types having more fields than they should --- src/domain/click.rs | 4 +--- src/domain/project.rs | 2 +- src/domain/realtor.rs | 3 +++ src/traits/impls/readable.rs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/domain/click.rs b/src/domain/click.rs index 099127b..7995e03 100644 --- a/src/domain/click.rs +++ b/src/domain/click.rs @@ -14,7 +14,5 @@ pub struct Click { #[serde(rename = "trackableId")] pub trackable_id: Uuid, #[serde(rename = "timeCreated")] - pub time_created: DateTime, - #[serde(rename = "lastUpdated")] - pub last_updated: DateTime + pub time_created: DateTime } \ No newline at end of file diff --git a/src/domain/project.rs b/src/domain/project.rs index c5faff4..f4113be 100644 --- a/src/domain/project.rs +++ b/src/domain/project.rs @@ -16,7 +16,7 @@ pub struct Project { /// This gives the realtor the option to order the projects/properties. On birth, #[serde(rename = "orderIndex")] - pub order_index: u16, + pub order_index: i32, #[serde(rename = "timeCreated")] pub time_created: DateTime, diff --git a/src/domain/realtor.rs b/src/domain/realtor.rs index 3b8e42f..a193810 100644 --- a/src/domain/realtor.rs +++ b/src/domain/realtor.rs @@ -12,6 +12,9 @@ pub struct Realtor { pub email: Option, #[serde(rename = "profilePictureUrl")] pub profile_picture_url: String, + #[serde(rename = "showProjects")] + pub show_projects: bool, + pub shortcode: String, #[serde(rename = "remaxAgentId")] pub remax_agent_id: Option, #[serde(rename = "timeCreated")] diff --git a/src/traits/impls/readable.rs b/src/traits/impls/readable.rs index 9cb2ad3..3262b00 100644 --- a/src/traits/impls/readable.rs +++ b/src/traits/impls/readable.rs @@ -1,3 +1,3 @@ -use crate::traits::readable::Readable; +//use crate::traits::readable::Readable;