pub struct FlightHeader {
pub carrier: Option<FlightCarrier>,
pub flight_number: Option<String>,
pub flight_number_display_override: Option<String>,
pub kind: Option<String>,
pub operating_carrier: Option<FlightCarrier>,
pub operating_flight_number: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§carrier: Option<FlightCarrier>
Information about airline carrier. This is a required property of flightHeader
.
flight_number: Option<String>
The flight number without IATA carrier code. This field should contain only digits. This is a required property of flightHeader
. eg: “123”
flight_number_display_override: Option<String>
Override value to use for flight number. The default value used for display purposes is carrier + flight_number. If a different value needs to be shown to passengers, use this field to override the default behavior. eg: “XX1234 / YY576”
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string "walletobjects#flightHeader"
.
operating_carrier: Option<FlightCarrier>
Information about operating airline carrier.
operating_flight_number: Option<String>
The flight number used by the operating carrier without IATA carrier code. This field should contain only digits. eg: “234”
Trait Implementations§
Source§impl Clone for FlightHeader
impl Clone for FlightHeader
Source§fn clone(&self) -> FlightHeader
fn clone(&self) -> FlightHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FlightHeader
impl Debug for FlightHeader
Source§impl Default for FlightHeader
impl Default for FlightHeader
Source§fn default() -> FlightHeader
fn default() -> FlightHeader
Source§impl<'de> Deserialize<'de> for FlightHeader
impl<'de> Deserialize<'de> for FlightHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for FlightHeader
impl Serialize for FlightHeader
impl Part for FlightHeader
Auto Trait Implementations§
impl Freeze for FlightHeader
impl RefUnwindSafe for FlightHeader
impl Send for FlightHeader
impl Sync for FlightHeader
impl Unpin for FlightHeader
impl UnwindSafe for FlightHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more