pub struct Stop { /* private fields */ }
Implementations§
Source§impl Stop
impl Stop
pub fn new( id: i32, name: String, long_name: Option<String>, abbreviation: Option<String>, synonyms: Option<Vec<String>>, ) -> Self
pub fn name(&self) -> &str
pub fn lv95_coordinates(&self) -> Option<Coordinates>
pub fn set_lv95_coordinates(&mut self, value: Coordinates)
pub fn wgs84_coordinates(&self) -> Option<Coordinates>
pub fn set_wgs84_coordinates(&mut self, value: Coordinates)
pub fn set_exchange_priority(&mut self, value: i16)
pub fn exchange_flag(&self) -> i16
pub fn set_exchange_flag(&mut self, value: i16)
pub fn exchange_time(&self) -> Option<(i16, i16)>
pub fn set_exchange_time(&mut self, value: Option<(i16, i16)>)
pub fn set_restrictions(&mut self, value: i16)
pub fn set_sloid(&mut self, value: String)
pub fn add_boarding_area(&mut self, value: String)
pub fn can_be_used_as_exchange_point(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stop
impl<'de> Deserialize<'de> for Stop
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 Stop
impl RefUnwindSafe for Stop
impl Send for Stop
impl Sync for Stop
impl Unpin for Stop
impl UnwindSafe for Stop
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