diff options
author | stuebinm | 2024-09-09 15:47:47 +0200 |
---|---|---|
committer | stuebinm | 2024-09-09 15:47:47 +0200 |
commit | 0a3aad3a4e31049b36832827a5b3afff1334bff8 (patch) | |
tree | c8235aaae7a8ee564741161ab0d9fd1fb8b3c81c /src/types.rs | |
parent | b6080abc5661f9323593944f5701d7dd7597afb9 (diff) |
these are not present when other hafas backends than the DB one were
used for the trip's checkin.
Diffstat (limited to 'src/types.rs')
-rw-r--r-- | src/types.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/types.rs b/src/types.rs index 257f857..b698898 100644 --- a/src/types.rs +++ b/src/types.rs @@ -10,7 +10,7 @@ use crate::traits::IsStation; #[serde(rename_all = "camelCase")] pub struct Station { name: String, - pub ds100: String, + pub ds100: Option<String>, uic: u64, latitude: f64, longitude: f64, @@ -56,8 +56,8 @@ impl IsStation for Station { Some(&self.real_time) } - fn ds100(&self) -> &str { - &self.ds100 + fn ds100(&self) -> Option<&str> { + self.ds100.as_deref() } } @@ -72,8 +72,8 @@ impl IsStation for Stop { self.real_arrival.as_ref() } - fn ds100(&self) -> &str { - "[??]" + fn ds100(&self) -> Option<&str> { + None } } |