Allow position to be Null

This commit is contained in:
Joey Hines 2025-06-14 17:45:59 -06:00
parent b8fbf2651e
commit 5886cd726f
Signed by: joeyahines
GPG Key ID: 38BA6F25C94C9382
3 changed files with 9 additions and 9 deletions

View File

@ -51,7 +51,7 @@ pub struct Eta {
#[serde(rename = "isFlt")]
pub is_flt: String,
pub flags: Option<String>,
pub lat: String,
pub lon: String,
pub heading: String,
pub lat: Option<String>,
pub lon: Option<String>,
pub heading: Option<String>,
}

View File

@ -9,9 +9,9 @@ pub struct FollowRequest {
#[derive(Deserialize, Debug, Default)]
pub struct Position {
pub lat: String,
pub lon: String,
pub heading: String,
pub lat: Option<String>,
pub lon: Option<String>,
pub heading: Option<String>,
}
#[derive(Deserialize, Debug)]

View File

@ -23,7 +23,7 @@ pub struct Train {
#[serde(rename = "isDly")]
pub is_dly: String,
pub flags: Option<String>,
pub lat: String,
pub lon: String,
pub heading: String,
pub lat: Option<String>,
pub lon: Option<String>,
pub heading: Option<String>,
}