pub struct TripSpecification {
pub external_ref: Option<Option<String>>,
pub legs: Vec<TripLegSpecification>,
pub is_part_of_international_trip: Option<Option<bool>>,
pub return_search_parameters: Option<Box<ReturnSearchParameters>>,
}Expand description
TripSpecification : A minimal trip specification from origin to destination.
Fields§
§external_ref: Option<Option<String>>External reference of this trip for referencing purposes. Unique within a trip specification.
legs: Vec<TripLegSpecification>§is_part_of_international_trip: Option<Option<bool>>§return_search_parameters: Option<Box<ReturnSearchParameters>>Implementations§
Source§impl TripSpecification
impl TripSpecification
Sourcepub fn new(legs: Vec<TripLegSpecification>) -> TripSpecification
pub fn new(legs: Vec<TripLegSpecification>) -> TripSpecification
A minimal trip specification from origin to destination.
Trait Implementations§
Source§impl Clone for TripSpecification
impl Clone for TripSpecification
Source§fn clone(&self) -> TripSpecification
fn clone(&self) -> TripSpecification
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 TripSpecification
impl Debug for TripSpecification
Source§impl Default for TripSpecification
impl Default for TripSpecification
Source§fn default() -> TripSpecification
fn default() -> TripSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripSpecification
impl<'de> Deserialize<'de> for TripSpecification
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 TripSpecification
impl PartialEq for TripSpecification
Source§impl Serialize for TripSpecification
impl Serialize for TripSpecification
impl StructuralPartialEq for TripSpecification
Auto Trait Implementations§
impl Freeze for TripSpecification
impl RefUnwindSafe for TripSpecification
impl Send for TripSpecification
impl Sync for TripSpecification
impl Unpin for TripSpecification
impl UnwindSafe for TripSpecification
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