Struct google_qpxexpress1::api::SliceInput
source · 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 more