pub struct SliceInput {
pub alliance: Option<String>,
pub date: Option<String>,
pub destination: Option<String>,
pub kind: Option<String>,
pub max_connection_duration: Option<i32>,
pub max_stops: Option<i32>,
pub origin: Option<String>,
pub permitted_carrier: Option<Vec<String>>,
pub permitted_departure_time: Option<TimeOfDayRange>,
pub preferred_cabin: Option<String>,
pub prohibited_carrier: Option<Vec<String>>,
}
Expand description
Criteria a desired slice must satisfy.
This type is not used in any activity, and only used as part of another schema.
Fields§
§alliance: Option<String>
Slices with only the carriers in this alliance should be returned; do not use this field with permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, and STAR.
date: Option<String>
Departure date in YYYY-MM-DD format.
destination: Option<String>
Airport or city IATA designator of the destination.
kind: Option<String>
Identifies this as a slice input object, representing the criteria a desired slice must satisfy. Value: the fixed string qpxexpress#sliceInput.
max_connection_duration: Option<i32>
The longest connection between two legs, in minutes, you are willing to accept.
max_stops: Option<i32>
The maximum number of stops you are willing to accept in this slice.
origin: Option<String>
Airport or city IATA designator of the origin.
permitted_carrier: Option<Vec<String>>
A list of 2-letter IATA airline designators. Slices with only these carriers should be returned.
permitted_departure_time: Option<TimeOfDayRange>
Slices must depart in this time of day range, local to the point of departure.
preferred_cabin: Option<String>
Prefer solutions that book in this cabin for this slice. Allowed values are COACH, PREMIUM_COACH, BUSINESS, and FIRST.
prohibited_carrier: Option<Vec<String>>
A list of 2-letter IATA airline designators. Exclude slices that use these carriers.
Trait Implementations§
Source§impl Clone for SliceInput
impl Clone for SliceInput
Source§fn clone(&self) -> SliceInput
fn clone(&self) -> SliceInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SliceInput
impl Debug for SliceInput
Source§impl Default for SliceInput
impl Default for SliceInput
Source§fn default() -> SliceInput
fn default() -> SliceInput
Source§impl<'de> Deserialize<'de> for SliceInput
impl<'de> Deserialize<'de> for SliceInput
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>,
Source§impl Serialize for SliceInput
impl Serialize for SliceInput
impl Part for SliceInput
Auto Trait Implementations§
impl Freeze for SliceInput
impl RefUnwindSafe for SliceInput
impl Send for SliceInput
impl Sync for SliceInput
impl Unpin for SliceInput
impl UnwindSafe for SliceInput
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
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>
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>
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