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

Airport or city IATA designator of the origin.

Identifies this as a slice input object, representing the criteria a desired slice must satisfy. Value: the fixed string qpxexpress#sliceInput.

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.

Departure date in YYYY-MM-DD format.

Airport or city IATA designator of the destination.

The maximum number of stops you are willing to accept in this slice.

Slices must depart in this time of day range, local to the point of departure.

A list of 2-letter IATA airline designators. Slices with only these carriers should be returned.

The longest connection between two legs, in minutes, you are willing to accept.

Prefer solutions that book in this cabin for this slice. Allowed values are COACH, PREMIUM_COACH, BUSINESS, and FIRST.

A list of 2-letter IATA airline designators. Exclude slices that use these carriers.

Trait Implementations

impl Debug for SliceInput
[src]

Formats the value using the given formatter.

impl Clone for SliceInput
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for SliceInput
[src]

Returns the "default value" for a type. Read more

impl Part for SliceInput
[src]