pub struct TrainLink {
pub from_station: Box<StopPlaceRef>,
pub to_station: Box<StopPlaceRef>,
pub train: String,
pub travel_date: String,
pub service_brand_code: Option<String>,
pub service_brand_abbreviation: String,
}Fields§
§from_station: Box<StopPlaceRef>§to_station: Box<StopPlaceRef>§train: String§travel_date: Stringdate and time of the departure where the train link starts
service_brand_code: Option<String>Service brand codes. For public transport, a code list can be found in OSDM’s code list. E.g., ‘163’ denotes TGV Lyria and ‘175’ denotes Glacier Express.
service_brand_abbreviation: StringAbbreviation of the service brand, e.g. ‘IC’, ‘TGV’. See the OSDM code list. Needs to match the service brand code.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrainLink
impl<'de> Deserialize<'de> for TrainLink
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
impl StructuralPartialEq for TrainLink
Auto Trait Implementations§
impl Freeze for TrainLink
impl RefUnwindSafe for TrainLink
impl Send for TrainLink
impl Sync for TrainLink
impl Unpin for TrainLink
impl UnwindSafe for TrainLink
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