pub struct TrainSchedule { /* private fields */ }Expand description
Train trip
Implementations§
Source§impl TrainSchedule
impl TrainSchedule
Sourcepub fn train_number(&self) -> &String
pub fn train_number(&self) -> &String
Italo ID
Sourcepub fn rfi_train_number(&self) -> &String
pub fn rfi_train_number(&self) -> &String
Rete Ferroviaria Italian ID
Sourcepub fn departure_time(&self) -> &String
pub fn departure_time(&self) -> &String
Scheduled departure time
Sourcepub fn departure_station_name(&self) -> &String
pub fn departure_station_name(&self) -> &String
First trip station name
Sourcepub fn arrival_time(&self) -> &String
pub fn arrival_time(&self) -> &String
Scheduled arrival time
Sourcepub fn arrival_station_name(&self) -> &String
pub fn arrival_station_name(&self) -> &String
Terminus station
Sourcepub fn disruption(&self) -> &Disruption
pub fn disruption(&self) -> &Disruption
Service disruption data
Sourcepub fn departure_station(&self) -> &TrainStation
pub fn departure_station(&self) -> &TrainStation
Additional information on the first station
Sourcepub fn stations_with_stop(&self) -> &Vec<TrainStation>
pub fn stations_with_stop(&self) -> &Vec<TrainStation>
Stations where the train has already stopped
Sourcepub fn stations_with_transit(&self) -> &Vec<TrainStation>
pub fn stations_with_transit(&self) -> &Vec<TrainStation>
Stations where it will stop
Trait Implementations§
Source§impl Debug for TrainSchedule
impl Debug for TrainSchedule
Source§impl<'de> Deserialize<'de> for TrainSchedule
impl<'de> Deserialize<'de> for TrainSchedule
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 TrainSchedule
impl RefUnwindSafe for TrainSchedule
impl Send for TrainSchedule
impl Sync for TrainSchedule
impl Unpin for TrainSchedule
impl UnwindSafe for TrainSchedule
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