Airline

Struct Airline 

Source
pub struct Airline {
Show 22 fields pub name: String, pub iata_prefix: u64, pub iata_accounting: u64, pub iata_code: Option<String>, pub icao_code: Option<String>, pub callsign: String, pub country_code: String, pub iosa_registered: u64, pub is_scheduled: u64, pub is_passenger: u64, pub is_cargo: u64, pub is_international: u64, pub total_aircrafts: u64, pub average_fleet_age: u64, pub accidents_last_5y: u64, pub crashes_last_5y: u64, pub website: String, pub facebook: String, pub twitter: String, pub instagram: String, pub linkedin: String, pub slug: String,
}

Fields§

§name: String

Public name. Available in the Free plan.

§iata_prefix: u64

3 Numeric Airline Prefix Code for Cargo Operations​.

§iata_accounting: u64

3 Numeric Accounting Code for Passenger Operations.

§iata_code: Option<String>

Official IATA code. Available in the Free plan.

§icao_code: Option<String>

Official ICAO code. Available in the Free plan.

§callsign: String

Allocated ICAO callsign.

§country_code: String

ISO 2 country code from Countries DB.

§iosa_registered: u64

IATA Operational Safety Audit Program.

§is_scheduled: u64

The airline provides scheduled flights.

§is_passenger: u64

The airline provides passenger services.

§is_cargo: u64

The airline provides cargo services.

§is_international: u64

The airline provides international flights.

§total_aircrafts: u64

Confirmed total aircrafts.

§average_fleet_age: u64

Average airline fleet age (years).

§accidents_last_5y: u64

Airline accidents for the last 5 years.

§crashes_last_5y: u64

Airline crashes for the last 5 years.

§website: String

Airline official website.

§facebook: String

Airline official Facebook page.

§twitter: String

Airline official Twitter account.

§instagram: String

Airline official Instagram profile.

§linkedin: String

Airline official Linkedin profile.

§slug: String

AirLabs generated uniq Airline ID, which you can use for SEO, etc.

Trait Implementations§

Source§

impl Debug for Airline

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Airline

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Airline

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,