pub struct RouteLeg {
pub from: EntityId,
pub to: EntityId,
pub via: TransportMode,
}Expand description
One segment of a multi-leg route.
Fields§
§from: EntityIdOrigin stop entity.
to: EntityIdDestination stop entity.
via: TransportModeTransport mode for this leg.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteLeg
impl<'de> Deserialize<'de> for RouteLeg
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 RouteLeg
impl RefUnwindSafe for RouteLeg
impl Send for RouteLeg
impl Sync for RouteLeg
impl Unpin for RouteLeg
impl UnsafeUnpin for RouteLeg
impl UnwindSafe for RouteLeg
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