diff --git a/src/restclient.rs b/src/restclient.rs index 27cf45b..32c3b34 100644 --- a/src/restclient.rs +++ b/src/restclient.rs @@ -10,7 +10,7 @@ const DATE_TIME_FORMAT: &str = "%Y-%m-%d %H:%M:%S%.6f"; pub struct Race { pub id: u32, pub name: String, - pub description: String, + pub description: Option, #[serde(rename = "dateOfEvent", deserialize_with = "parse_dt")] pub date_of_event: DateTime, } @@ -41,7 +41,7 @@ pub struct Category { pub struct Track { pub id: u32, pub name: String, - pub description: String, + pub description: Option, } #[derive(Debug, Serialize)]