Struct google_qpxexpress1::SegmentInfo [] [src]

pub struct SegmentInfo {
    pub kind: Option<String>,
    pub booking_code_count: Option<i32>,
    pub flight: Option<FlightInfo>,
    pub leg: Option<Vec<LegInfo>>,
    pub subject_to_government_approval: Option<bool>,
    pub connection_duration: Option<i32>,
    pub booking_code: Option<String>,
    pub duration: Option<i32>,
    pub id: Option<String>,
    pub cabin: Option<String>,
    pub married_segment_group: Option<String>,
}

Details of a segment of a flight; a segment is one or more consecutive legs on the same flight. For example a hypothetical flight ZZ001, from DFW to OGG, would have one segment with two legs: DFW to HNL (leg 1), HNL to OGG (leg 2), and DFW to OGG (legs 1 and 2).

This type is not used in any activity, and only used as part of another schema.

Fields

Identifies this as a segment object. A segment is one or more consecutive legs on the same flight. For example a hypothetical flight ZZ001, from DFW to OGG, could have one segment with two legs: DFW to HNL (leg 1), HNL to OGG (leg 2). Value: the fixed string qpxexpress#segmentInfo.

The number of seats available in this booking code on this segment.

The flight this is a segment of.

The legs composing this segment.

Whether the operation of this segment remains subject to government approval.

In minutes, the duration of the connection following this segment.

The booking code or class for this segment.

The duration of the flight segment in minutes.

An id uniquely identifying the segment in the solution.

The cabin booked for this segment.

The solution-based index of a segment in a married segment group. Married segments can only be booked together. For example, an airline might report a certain booking code as sold out from Boston to Pittsburgh, but as available as part of two married segments Boston to Chicago connecting through Pittsburgh. For example content of this field, consider the round-trip flight ZZ1 PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has three segments, with the two outbound ones (ZZ1 ZZ2) married. In this case, the two outbound segments belong to married segment group 0, and the return segment belongs to married segment group 1.

Trait Implementations

impl Debug for SegmentInfo
[src]

Formats the value using the given formatter.

impl Clone for SegmentInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for SegmentInfo
[src]

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

impl Part for SegmentInfo
[src]