pub struct TransferLeg {
pub continuous_mode: Option<String>,
pub transfer_mode: Option<String>,
pub start: Box<PlaceRef>,
pub end: Box<PlaceRef>,
pub time_window_start: Option<Option<String>>,
pub time_window_end: Option<Option<String>>,
pub duration: Option<Option<String>>,
pub situation_full_refs: Option<Vec<String>>,
pub co2_emission: Option<Box<Quantity>>,
}Expand description
TransferLeg : A leg which links other legs of a trip where a transfer between different places is required. Provided by OJP.
Fields§
§continuous_mode: Option<String>Types of modes that run at any time without a timetable. Provided by OJP.
transfer_mode: Option<String>Modes dedicated to perform transfers. Provided by OJP.
start: Box<PlaceRef>§end: Box<PlaceRef>§time_window_start: Option<Option<String>>Time at which window begins.
time_window_end: Option<Option<String>>Time at which window ends.
duration: Option<Option<String>>Overall duration of this interchange.
situation_full_refs: Option<Vec<String>>§co2_emission: Option<Box<Quantity>>Implementations§
Source§impl TransferLeg
impl TransferLeg
Sourcepub fn new(start: PlaceRef, end: PlaceRef) -> TransferLeg
pub fn new(start: PlaceRef, end: PlaceRef) -> TransferLeg
A leg which links other legs of a trip where a transfer between different places is required. Provided by OJP.
Trait Implementations§
Source§impl Clone for TransferLeg
impl Clone for TransferLeg
Source§fn clone(&self) -> TransferLeg
fn clone(&self) -> TransferLeg
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 TransferLeg
impl Debug for TransferLeg
Source§impl Default for TransferLeg
impl Default for TransferLeg
Source§fn default() -> TransferLeg
fn default() -> TransferLeg
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransferLeg
impl<'de> Deserialize<'de> for TransferLeg
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 TransferLeg
impl PartialEq for TransferLeg
Source§impl Serialize for TransferLeg
impl Serialize for TransferLeg
impl StructuralPartialEq for TransferLeg
Auto Trait Implementations§
impl Freeze for TransferLeg
impl RefUnwindSafe for TransferLeg
impl Send for TransferLeg
impl Sync for TransferLeg
impl Unpin for TransferLeg
impl UnwindSafe for TransferLeg
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