pub struct Mode {
pub pt_mode: String,
pub name: Option<Option<String>>,
pub short_name: Option<Option<String>>,
pub description: Option<Option<String>>,
}Expand description
Mode : A method of transportation such as bus, rail, etc. Provided by OJP.
Fields§
§pt_mode: StringTAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the Transport Mode Code List Listed values here are examples.
name: Option<Option<String>>Name of the mode
short_name: Option<Option<String>>Short name or acronym of the mode
description: Option<Option<String>>Additional text that further describes the mode
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
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 Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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