pub struct TripLeg {
pub id: String,
pub external_ref: Option<Option<String>>,
pub timed_leg: Option<Box<TimedLeg>>,
pub transfer_leg: Option<Box<TransferLeg>>,
pub continuous_leg: Option<Box<ContinuousLeg>>,
}Expand description
TripLeg : A single stage of a trip that is made without change of MODE or service (ie: between each interchange). Provided by OJP.
Fields§
§id: StringId of this trip leg. Unique within trip result. A seqId is a leg id.
external_ref: Option<Option<String>>External reference of this tripLeg for referencing purposes.
timed_leg: Option<Box<TimedLeg>>§transfer_leg: Option<Box<TransferLeg>>§continuous_leg: Option<Box<ContinuousLeg>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TripLeg
impl<'de> Deserialize<'de> for TripLeg
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 TripLeg
Auto Trait Implementations§
impl Freeze for TripLeg
impl RefUnwindSafe for TripLeg
impl Send for TripLeg
impl Sync for TripLeg
impl Unpin for TripLeg
impl UnwindSafe for TripLeg
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