pub struct TripLegSpecification {
pub external_ref: Option<Option<String>>,
pub timed_leg: Option<Box<TimedLegSpecification>>,
pub transfer_leg: Option<Box<TransferLeg>>,
}Expand description
TripLegSpecification : A minimal trip leg specification.
Fields§
§external_ref: Option<Option<String>>External reference of this trip leg. Unique within trip result.
timed_leg: Option<Box<TimedLegSpecification>>§transfer_leg: Option<Box<TransferLeg>>Implementations§
Source§impl TripLegSpecification
impl TripLegSpecification
Sourcepub fn new() -> TripLegSpecification
pub fn new() -> TripLegSpecification
A minimal trip leg specification.
Trait Implementations§
Source§impl Clone for TripLegSpecification
impl Clone for TripLegSpecification
Source§fn clone(&self) -> TripLegSpecification
fn clone(&self) -> TripLegSpecification
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 TripLegSpecification
impl Debug for TripLegSpecification
Source§impl Default for TripLegSpecification
impl Default for TripLegSpecification
Source§fn default() -> TripLegSpecification
fn default() -> TripLegSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripLegSpecification
impl<'de> Deserialize<'de> for TripLegSpecification
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 TripLegSpecification
impl PartialEq for TripLegSpecification
Source§impl Serialize for TripLegSpecification
impl Serialize for TripLegSpecification
impl StructuralPartialEq for TripLegSpecification
Auto Trait Implementations§
impl Freeze for TripLegSpecification
impl RefUnwindSafe for TripLegSpecification
impl Send for TripLegSpecification
impl Sync for TripLegSpecification
impl Unpin for TripLegSpecification
impl UnwindSafe for TripLegSpecification
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