pub struct TrainStation { /* private fields */ }Expand description
Station data enriched with train information
Implementations§
Source§impl TrainStation
impl TrainStation
Sourcepub fn location_code(&self) -> &String
pub fn location_code(&self) -> &String
Italo station ID
Sourcepub fn location_description(&self) -> &String
pub fn location_description(&self) -> &String
Human firendly name
Sourcepub fn rfi_location_code(&self) -> &String
pub fn rfi_location_code(&self) -> &String
Rete Ferroviaria Italiana ID
Sourcepub fn estimated_departure_time(&self) -> &String
pub fn estimated_departure_time(&self) -> &String
Estimated time by which the train will leave the station
Sourcepub fn actual_departure_time(&self) -> &String
pub fn actual_departure_time(&self) -> &String
Real time by which the train will leave the station
Sourcepub fn estimated_arrival_time(&self) -> &String
pub fn estimated_arrival_time(&self) -> &String
Estimated time by which the train will arrive to the station
Sourcepub fn actual_arrival_time(&self) -> &String
pub fn actual_arrival_time(&self) -> &String
Real time by which the train will arrive to the station
Trait Implementations§
Source§impl Debug for TrainStation
impl Debug for TrainStation
Source§impl<'de> Deserialize<'de> for TrainStation
impl<'de> Deserialize<'de> for TrainStation
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 TrainStation
impl RefUnwindSafe for TrainStation
impl Send for TrainStation
impl Sync for TrainStation
impl Unpin for TrainStation
impl UnwindSafe for TrainStation
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