Struct trenitalia::TrainStation
source · pub struct TrainStation {
pub id: String,
pub region_id: u8,
pub position: (f64, f64),
pub aliases: Vec<String>,
pub vt_id: Option<String>,
pub lefrecce_name: Option<String>,
}
Expand description
Struct that holds the train station data
Fields§
§id: String
Three-charachters ID
region_id: u8
Trenitalia region ID
position: (f64, f64)
Tuple that contains latitude and longitude
aliases: Vec<String>
List of possible aliases of a station
vt_id: Option<String>
Station ID used for the ViaggaTreno API
lefrecce_name: Option<String>
Station name used for the LeFrecce API
Implementations§
Trait Implementations§
source§impl Clone for TrainStation
impl Clone for TrainStation
source§fn clone(&self) -> TrainStation
fn clone(&self) -> TrainStation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 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