pub struct TrainRealtime { /* private fields */ }Expand description
Realtime data for a train
Implementations§
Source§impl TrainRealtime
impl TrainRealtime
pub fn last_update(&self) -> &String
pub fn train_schedule(&self) -> &TrainSchedule
Trait Implementations§
Source§impl Debug for TrainRealtime
impl Debug for TrainRealtime
Source§impl<'de> Deserialize<'de> for TrainRealtime
impl<'de> Deserialize<'de> for TrainRealtime
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 TrainRealtime
impl RefUnwindSafe for TrainRealtime
impl Send for TrainRealtime
impl Sync for TrainRealtime
impl Unpin for TrainRealtime
impl UnwindSafe for TrainRealtime
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