pub struct TimedLegSpecification {
pub start: Box<BoardSpecification>,
pub intermediates: Option<Vec<IntermediateSpecification>>,
pub end: Box<AlightSpecification>,
pub service: Box<DatedJourney>,
}Expand description
TimedLegSpecification : A minimal timed leg specification.
Fields§
§start: Box<BoardSpecification>§intermediates: Option<Vec<IntermediateSpecification>>§end: Box<AlightSpecification>§service: Box<DatedJourney>Implementations§
Source§impl TimedLegSpecification
impl TimedLegSpecification
Sourcepub fn new(
start: BoardSpecification,
end: AlightSpecification,
service: DatedJourney,
) -> TimedLegSpecification
pub fn new( start: BoardSpecification, end: AlightSpecification, service: DatedJourney, ) -> TimedLegSpecification
A minimal timed leg specification.
Trait Implementations§
Source§impl Clone for TimedLegSpecification
impl Clone for TimedLegSpecification
Source§fn clone(&self) -> TimedLegSpecification
fn clone(&self) -> TimedLegSpecification
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 TimedLegSpecification
impl Debug for TimedLegSpecification
Source§impl Default for TimedLegSpecification
impl Default for TimedLegSpecification
Source§fn default() -> TimedLegSpecification
fn default() -> TimedLegSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimedLegSpecification
impl<'de> Deserialize<'de> for TimedLegSpecification
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 TimedLegSpecification
impl PartialEq for TimedLegSpecification
Source§impl Serialize for TimedLegSpecification
impl Serialize for TimedLegSpecification
impl StructuralPartialEq for TimedLegSpecification
Auto Trait Implementations§
impl Freeze for TimedLegSpecification
impl RefUnwindSafe for TimedLegSpecification
impl Send for TimedLegSpecification
impl Sync for TimedLegSpecification
impl Unpin for TimedLegSpecification
impl UnwindSafe for TimedLegSpecification
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