[−][src]Struct google_qpxexpress1::SegmentInfo
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
kind: Option<String>
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.
booking_code_count: Option<i32>
The number of seats available in this booking code on this segment.
flight: Option<FlightInfo>
The flight this is a segment of.
leg: Option<Vec<LegInfo>>
The legs composing this segment.
subject_to_government_approval: Option<bool>
Whether the operation of this segment remains subject to government approval.
connection_duration: Option<i32>
In minutes, the duration of the connection following this segment.
booking_code: Option<String>
The booking code or class for this segment.
duration: Option<i32>
The duration of the flight segment in minutes.
id: Option<String>
An id uniquely identifying the segment in the solution.
cabin: Option<String>
The cabin booked for this segment.
married_segment_group: Option<String>
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 Clone for SegmentInfo
[src]
fn clone(&self) -> SegmentInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SegmentInfo
[src]
impl Default for SegmentInfo
[src]
fn default() -> SegmentInfo
[src]
impl<'de> Deserialize<'de> for SegmentInfo
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for SegmentInfo
[src]
impl Serialize for SegmentInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for SegmentInfo
impl Send for SegmentInfo
impl Sync for SegmentInfo
impl Unpin for SegmentInfo
impl UnwindSafe for SegmentInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,