pub struct Train {Show 14 fields
pub lat: f64,
pub lon: f64,
pub train_number: String,
pub service: ServiceType,
pub dest: RegionalRailStop,
pub current_stop: RegionalRailStop,
pub next_stop: RegionalRailStop,
pub line: RegionalRailsLine,
pub consist: Option<Vec<i32>>,
pub heading: Option<f64>,
pub late: i32,
pub source: RegionalRailStop,
pub track: String,
pub track_change: String,
}Fields§
§lat: f64§lon: f64§train_number: String§service: ServiceType§dest: RegionalRailStop§current_stop: RegionalRailStop§next_stop: RegionalRailStop§line: RegionalRailsLine§consist: Option<Vec<i32>>§heading: Option<f64>§late: i32§source: RegionalRailStop§track: String§track_change: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Train
impl<'de> Deserialize<'de> for Train
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Train
impl RefUnwindSafe for Train
impl Send for Train
impl Sync for Train
impl Unpin for Train
impl UnwindSafe for Train
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more