pub struct TransitStopMetadata {
pub node_id: NodeId,
pub zone_id: Option<ZoneId>,
pub level_relation: Option<LevelRelation>,
pub served_modes: AllowedModes,
}Expand description
Minimal reusable metadata for a transit stop/platform anchor.
Fields§
§node_id: NodeIdStable topology node identifier for the stop anchor.
zone_id: Option<ZoneId>Optional semantic zone containing the stop.
level_relation: Option<LevelRelation>Optional level relation for the stop.
served_modes: AllowedModesModes served or admitted at the stop.
Implementations§
Source§impl TransitStopMetadata
impl TransitStopMetadata
Sourcepub fn new(node_id: NodeId, served_modes: AllowedModes) -> Self
pub fn new(node_id: NodeId, served_modes: AllowedModes) -> Self
Create stop metadata for a node.
Sourcepub fn with_level_relation(self, level_relation: LevelRelation) -> Self
pub fn with_level_relation(self, level_relation: LevelRelation) -> Self
Attach a level relation.
Trait Implementations§
Source§impl Clone for TransitStopMetadata
impl Clone for TransitStopMetadata
Source§fn clone(&self) -> TransitStopMetadata
fn clone(&self) -> TransitStopMetadata
Returns a duplicate 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 TransitStopMetadata
impl Debug for TransitStopMetadata
Source§impl PartialEq for TransitStopMetadata
impl PartialEq for TransitStopMetadata
Source§impl SemanticEntity for TransitStopMetadata
impl SemanticEntity for TransitStopMetadata
impl Copy for TransitStopMetadata
impl StructuralPartialEq for TransitStopMetadata
Auto Trait Implementations§
impl Freeze for TransitStopMetadata
impl RefUnwindSafe for TransitStopMetadata
impl Send for TransitStopMetadata
impl Sync for TransitStopMetadata
impl Unpin for TransitStopMetadata
impl UnsafeUnpin for TransitStopMetadata
impl UnwindSafe for TransitStopMetadata
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