pub struct TimedLeg {
pub start: Box<Board>,
pub intermediates: Option<Vec<Intermediate>>,
pub end: Box<Alight>,
pub service: Box<DatedJourney>,
pub operating_days: Option<Box<OperatingDays>>,
pub operating_days_description: Option<Option<String>>,
pub duration: Option<Option<String>>,
pub co2_emission: Option<Box<Quantity>>,
pub attributes: Option<Vec<LegAttribute>>,
}Expand description
TimedLeg : A leg which is bound to a timetabled schedule. Corresponds to a ride. Provided by OJP.
Fields§
§start: Box<Board>§intermediates: Option<Vec<Intermediate>>§end: Box<Alight>§service: Box<DatedJourney>§operating_days: Option<Box<OperatingDays>>§operating_days_description: Option<Option<String>>Textual description of the operation days, e.g. ‘Monday to Friday’ or ‘not on holidays’.
duration: Option<Option<String>>§co2_emission: Option<Box<Quantity>>§attributes: Option<Vec<LegAttribute>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimedLeg
impl<'de> Deserialize<'de> for TimedLeg
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 TimedLeg
Auto Trait Implementations§
impl Freeze for TimedLeg
impl RefUnwindSafe for TimedLeg
impl Send for TimedLeg
impl Sync for TimedLeg
impl Unpin for TimedLeg
impl UnwindSafe for TimedLeg
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