Struct map_model::TransitStop
source · pub struct TransitStop {
pub id: TransitStopID,
pub name: String,
pub gtfs_id: String,
pub driving_pos: Position,
pub sidewalk_pos: Position,
pub is_train_stop: bool,
}
Fields§
§id: TransitStopID
§name: String
§gtfs_id: String
§driving_pos: Position
These may be on different roads entirely, like for light rail platforms.
sidewalk_pos: Position
§is_train_stop: bool
If false, only buses serve this stop
Trait Implementations§
source§impl Clone for TransitStop
impl Clone for TransitStop
source§fn clone(&self) -> TransitStop
fn clone(&self) -> TransitStop
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 TransitStop
impl Debug for TransitStop
source§impl<'de> Deserialize<'de> for TransitStop
impl<'de> Deserialize<'de> for TransitStop
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
source§impl PartialEq for TransitStop
impl PartialEq for TransitStop
source§fn eq(&self, other: &TransitStop) -> bool
fn eq(&self, other: &TransitStop) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransitStop
impl Serialize for TransitStop
impl StructuralPartialEq for TransitStop
Auto Trait Implementations§
impl Freeze for TransitStop
impl RefUnwindSafe for TransitStop
impl Send for TransitStop
impl Sync for TransitStop
impl Unpin for TransitStop
impl UnwindSafe for TransitStop
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