pub struct FlightCarrier {
pub airline_alliance_logo: Option<Image>,
pub airline_logo: Option<Image>,
pub airline_name: Option<LocalizedString>,
pub carrier_iata_code: Option<String>,
pub carrier_icao_code: Option<String>,
pub kind: Option<String>,
pub wide_airline_logo: Option<Image>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§airline_alliance_logo: Option<Image>A logo for the airline alliance, displayed below the QR code that the passenger scans to board.
airline_logo: Option<Image>A logo for the airline described by carrierIataCode and localizedAirlineName. This logo will be rendered at the top of the detailed card view.
airline_name: Option<LocalizedString>A localized name of the airline specified by carrierIataCode. If unset, issuer_name or localized_issuer_name from FlightClass will be used for display purposes. eg: “Swiss Air” for “LX”
carrier_iata_code: Option<String>Two character IATA airline code of the marketing carrier (as opposed to operating carrier). Exactly one of this or carrierIcaoCode needs to be provided for carrier and operatingCarrier. eg: “LX” for Swiss Air
carrier_icao_code: Option<String>Three character ICAO airline code of the marketing carrier (as opposed to operating carrier). Exactly one of this or carrierIataCode needs to be provided for carrier and operatingCarrier. eg: “EZY” for Easy Jet
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string "walletobjects#flightCarrier".
wide_airline_logo: Option<Image>The wide logo of the airline. When provided, this will be used in place of the airline logo in the top left of the card view.
Trait Implementations§
Source§impl Clone for FlightCarrier
impl Clone for FlightCarrier
Source§fn clone(&self) -> FlightCarrier
fn clone(&self) -> FlightCarrier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlightCarrier
impl Debug for FlightCarrier
Source§impl Default for FlightCarrier
impl Default for FlightCarrier
Source§fn default() -> FlightCarrier
fn default() -> FlightCarrier
Source§impl<'de> Deserialize<'de> for FlightCarrier
impl<'de> Deserialize<'de> for FlightCarrier
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 FlightCarrier
impl Serialize for FlightCarrier
impl Part for FlightCarrier
Auto Trait Implementations§
impl Freeze for FlightCarrier
impl RefUnwindSafe for FlightCarrier
impl Send for FlightCarrier
impl Sync for FlightCarrier
impl Unpin for FlightCarrier
impl UnwindSafe for FlightCarrier
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