pub struct ContinuousLeg {
pub start: Box<Place>,
pub end: Box<Place>,
pub service: Box<ContinuousService>,
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
ContinuousLeg : A leg of a journey that is not bound to a timetable. Provided by OJP.
Fields§
§start: Box<Place>§end: Box<Place>§service: Box<ContinuousService>§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>>Duration of this leg according to user preferences like walk speed.
situation_full_refs: Option<Vec<String>>§co2_emission: Option<Box<Quantity>>Implementations§
Source§impl ContinuousLeg
impl ContinuousLeg
Sourcepub fn new(
start: Place,
end: Place,
service: ContinuousService,
) -> ContinuousLeg
pub fn new( start: Place, end: Place, service: ContinuousService, ) -> ContinuousLeg
A leg of a journey that is not bound to a timetable. Provided by OJP.
Trait Implementations§
Source§impl Clone for ContinuousLeg
impl Clone for ContinuousLeg
Source§fn clone(&self) -> ContinuousLeg
fn clone(&self) -> ContinuousLeg
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 ContinuousLeg
impl Debug for ContinuousLeg
Source§impl Default for ContinuousLeg
impl Default for ContinuousLeg
Source§fn default() -> ContinuousLeg
fn default() -> ContinuousLeg
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContinuousLeg
impl<'de> Deserialize<'de> for ContinuousLeg
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 ContinuousLeg
impl PartialEq for ContinuousLeg
Source§impl Serialize for ContinuousLeg
impl Serialize for ContinuousLeg
impl StructuralPartialEq for ContinuousLeg
Auto Trait Implementations§
impl Freeze for ContinuousLeg
impl RefUnwindSafe for ContinuousLeg
impl Send for ContinuousLeg
impl Sync for ContinuousLeg
impl Unpin for ContinuousLeg
impl UnwindSafe for ContinuousLeg
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