Struct kvvliveapi::Departure
[−]
[src]
pub struct Departure { pub route: String, pub destination: String, pub direction: String, pub time: DateTime<Tz>, pub lowfloor: bool, pub realtime: bool, pub traction: u32, pub platform: String, }
A single departure containing information about time, platform, and the train
Fields
route: String
tram line name
destination: String
destination stop
direction: String
which direction the tram is going (1 or 2) does not seem to correspond to platform
time: DateTime<Tz>
when the train arrives
lowfloor: bool
low-floor tram?
realtime: bool
real time data available?
traction: u32
not sure. seen 0 or 2 as values
platform: String
platform the train arrives on
Trait Implementations
impl Debug for Departure
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Departure
[src]
fn eq(&self, __arg_0: &Departure) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Departure) -> bool
[src]
This method tests for !=
.