pub struct RouteSection { /* private fields */ }Implementations§
Source§impl RouteSectionResult
impl RouteSectionResult
pub fn new( journey_id: Option<i32>, departure_stop_id: i32, departure_stop_lv95_coordinates: Option<Coordinates>, departure_stop_wgs84_coordinates: Option<Coordinates>, arrival_stop_id: i32, arrival_stop_lv95_coordinates: Option<Coordinates>, arrival_stop_wgs84_coordinates: Option<Coordinates>, departure_at: Option<NaiveDateTime>, arrival_at: Option<NaiveDateTime>, duration: Option<i16>, ) -> Self
pub fn departure_stop_id(&self) -> i32
pub fn departure_at(&self) -> Option<NaiveDateTime>
pub fn arrival_stop_id(&self) -> i32
pub fn arrival_stop_lv95_coordinates(&self) -> Option<Coordinates>
pub fn arrival_at(&self) -> Option<NaiveDateTime>
pub fn duration(&self) -> Option<i16>
pub fn journey<'a>( &'a self, data_storage: &'a DataStorage, ) -> Option<&'a Journey>
pub fn is_walking_trip(&self) -> bool
Trait Implementations§
Source§impl Clone for RouteSectionResult
impl Clone for RouteSectionResult
Source§fn clone(&self) -> RouteSectionResult
fn clone(&self) -> RouteSectionResult
Returns a copy 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 RouteSectionResult
impl Debug for RouteSectionResult
Source§impl Serialize for RouteSectionResult
impl Serialize for RouteSectionResult
impl Copy for RouteSectionResult
Auto Trait Implementations§
impl Freeze for RouteSectionResult
impl RefUnwindSafe for RouteSectionResult
impl Send for RouteSectionResult
impl Sync for RouteSectionResult
impl Unpin for RouteSectionResult
impl UnwindSafe for RouteSectionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more