fixed some issues with types having more fields than they should

This commit is contained in:
Franklin 2023-05-03 12:59:43 -04:00
parent 9a87e497ce
commit d4f5e6a640
4 changed files with 6 additions and 5 deletions

View File

@ -14,7 +14,5 @@ pub struct Click {
#[serde(rename = "trackableId")]
pub trackable_id: Uuid,
#[serde(rename = "timeCreated")]
pub time_created: DateTime<Utc>,
#[serde(rename = "lastUpdated")]
pub last_updated: DateTime<Utc>
pub time_created: DateTime<Utc>
}

View File

@ -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<Utc>,

View File

@ -12,6 +12,9 @@ pub struct Realtor {
pub email: Option<String>,
#[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<i32>,
#[serde(rename = "timeCreated")]

View File

@ -1,3 +1,3 @@
use crate::traits::readable::Readable;
//use crate::traits::readable::Readable;