Struct google_qpxexpress1::SliceInput
[−]
[src]
pub struct SliceInput { pub origin: Option<String>, pub kind: Option<String>, pub alliance: Option<String>, pub date: Option<String>, pub destination: Option<String>, pub max_stops: Option<i32>, pub permitted_departure_time: Option<TimeOfDayRange>, pub permitted_carrier: Option<Vec<String>>, pub max_connection_duration: Option<i32>, pub preferred_cabin: Option<String>, pub prohibited_carrier: Option<Vec<String>>, }
Criteria a desired slice must satisfy.
This type is not used in any activity, and only used as part of another schema.
Fields
origin: Option<String>
Airport or city IATA designator of the origin.
kind: Option<String>
Identifies this as a slice input object, representing the criteria a desired slice must satisfy. Value: the fixed string qpxexpress#sliceInput.
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.
max_stops: Option<i32>
The maximum number of stops you are willing to accept in this slice.
permitted_departure_time: Option<TimeOfDayRange>
Slices must depart in this time of day range, local to the point of departure.
permitted_carrier: Option<Vec<String>>
A list of 2-letter IATA airline designators. Slices with only these carriers should be returned.
max_connection_duration: Option<i32>
The longest connection between two legs, in minutes, you are willing to accept.
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
impl Debug for SliceInput
[src]
impl Clone for SliceInput
[src]
fn clone(&self) -> SliceInput
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for SliceInput
[src]
fn default() -> SliceInput
Returns the "default value" for a type. Read more