Allow position to be Null
This commit is contained in:
3 files changed
+9
-9
No files matched your search
+3
-3
@@ -51,7 +51,7 @@ pub struct Eta {
|
|||||||
#[serde(rename = "isFlt")]
|
#[serde(rename = "isFlt")]
|
||||||
pub is_flt: String,
|
pub is_flt: String,
|
||||||
pub flags: Option<String>,
|
pub flags: Option<String>,
|
||||||
pub lat: String,
|
pub lat: Option<String>,
|
||||||
pub lon: String,
|
pub lon: Option<String>,
|
||||||
pub heading: String,
|
pub heading: Option<String>,
|
||||||
}
|
}
|
||||||
@@ -9,9 +9,9 @@ pub struct FollowRequest {
|
|||||||
|
|
||||||
#[derive(Deserialize, Debug, Default)]
|
#[derive(Deserialize, Debug, Default)]
|
||||||
pub struct Position {
|
pub struct Position {
|
||||||
pub lat: String,
|
pub lat: Option<String>,
|
||||||
pub lon: String,
|
pub lon: Option<String>,
|
||||||
pub heading: String,
|
pub heading: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
|
|||||||
+3
-3
@@ -23,7 +23,7 @@ pub struct Train {
|
|||||||
#[serde(rename = "isDly")]
|
#[serde(rename = "isDly")]
|
||||||
pub is_dly: String,
|
pub is_dly: String,
|
||||||
pub flags: Option<String>,
|
pub flags: Option<String>,
|
||||||
pub lat: String,
|
pub lat: Option<String>,
|
||||||
pub lon: String,
|
pub lon: Option<String>,
|
||||||
pub heading: String,
|
pub heading: Option<String>,
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user