Struct Flight

Source
pub struct Flight {
Show 70 fields pub hex: Option<String>, pub reg_number: String, pub aircraft_icao: Option<String>, pub flag: String, pub lat: Option<f64>, pub lng: Option<f64>, pub alt: Option<u64>, pub dir: Option<f64>, pub speed: Option<u64>, pub v_speed: Option<u64>, pub squawk: Option<String>, pub airline_iata: String, pub airline_icao: String, pub flight_iata: String, pub flight_icao: String, pub flight_number: String, pub cs_airline_iata: Option<String>, pub cs_flight_iata: Option<String>, pub cs_flight_number: Option<String>, pub dep_iata: String, pub dep_icao: String, pub dep_terminal: Option<String>, pub dep_gate: Option<String>, pub dep_time: String, pub dep_time_ts: u64, pub dep_time_utc: String, pub dep_estimated: Option<String>, pub dep_estimated_ts: Option<u64>, pub dep_estimated_utc: Option<String>, pub arr_iata: String, pub arr_icao: String, pub arr_terminal: Option<String>, pub arr_gate: Option<String>, pub arr_baggage: Option<String>, pub arr_time: String, pub arr_time_ts: u64, pub arr_time_utc: String, pub arr_estimated: Option<String>, pub arr_estimated_ts: Option<u64>, pub arr_estimated_utc: Option<String>, pub duration: u64, pub delayed: Option<u64>, pub dep_delayed: Option<u64>, pub arr_delayed: Option<u64>, pub updated: u64, pub status: String, pub model: Option<String>, pub manufacturer: Option<String>, pub msn: Option<String>, pub type: Option<AircraftType>, pub engine: String, pub engine_count: String, pub built: Option<u64>, pub age: Option<u64>, pub airline_name: Option<String>, pub dep_name: Option<String>, pub dep_city: Option<String>, pub dep_country: Option<String>, pub dep_actual: Option<String>, pub dep_actual_ts: Option<u64>, pub dep_actual_utc: Option<String>, pub arr_name: Option<String>, pub arr_city: Option<String>, pub arr_country: Option<String>, pub arr_actual: Option<String>, pub arr_actual_ts: Option<u64>, pub arr_actual_utc: Option<String>, pub eta: Option<u64>, pub percent: Option<u64>, pub utc: Option<String>,
}

Fields§

§hex: Option<String>

ICAO24 Hex address.

§reg_number: String

Aircraft Registration Number

§aircraft_icao: Option<String>

Aircraft ICAO type. Available in the Free plan.

§flag: String

ISO 2 country code from Countries DB. Available in the Free plan.

§lat: Option<f64>

Aircraft Geo-Latitude for now. Available in the Free plan.

§lng: Option<f64>

Aircraft Geo-Longitude for now. Available in the Free plan.

§alt: Option<u64>

Aircraft elevation for now (meters).

§dir: Option<f64>

Aircraft head direction for now. Available in the Free plan.

§speed: Option<u64>

Aircraft horizontal speed (km) for now.

§v_speed: Option<u64>

Aircraft vertical speed (km) for now.

§squawk: Option<String>

Aircraft squawk signal code.

§airline_iata: String

Airline IATA code. Available in the Free plan.

§airline_icao: String

Airline ICAO code.

§flight_iata: String

Flight IATA code-number. Available in the Free plan.

§flight_icao: String

Flight ICAO code-number.

§flight_number: String

Flight number only. Available in the Free plan.

§cs_airline_iata: Option<String>

Codeshared airline IATA code.

§cs_flight_iata: Option<String>

Codeshared flight IATA code-number.

§cs_flight_number: Option<String>

Codeshared flight number.

§dep_iata: String

Departure airport IATA code. Available in the Free plan.

§dep_icao: String

Departure airport ICAO code.

§dep_terminal: Option<String>

Estimated departure terminal.

§dep_gate: Option<String>

Estimated departure gate.

§dep_time: String

Departure time in the airport time zone. Available in the Free plan.

§dep_time_ts: u64

Departure UNIX timestamp.

§dep_time_utc: String

Departure time in UTC time zone.

§dep_estimated: Option<String>

Updated departure time in the airport time zone.

§dep_estimated_ts: Option<u64>

Updated departure UNIX timestamp.

§dep_estimated_utc: Option<String>

Updated departure time in UTC time zone.

§arr_iata: String

Arrival airport IATA code. Available in the Free plan.

§arr_icao: String

Arrival airport ICAO code.

§arr_terminal: Option<String>

Estimated arrival terminal.

§arr_gate: Option<String>

Estimated arrival gate.

§arr_baggage: Option<String>

Arrival baggage claim carousel number.

§arr_time: String

Arrival time in the airport time zone. Available in the Free plan.

§arr_time_ts: u64

Arrival UNIX timestamp.

§arr_time_utc: String

Arrival time in UTC time zone.

§arr_estimated: Option<String>

Updated arrival time in the airport time zone.

§arr_estimated_ts: Option<u64>

Updated arrival UNIX timestamp.

§arr_estimated_utc: Option<String>

Updated arrival time in UTC time zone.

§duration: u64

Estimated flight time (in minutes).

§delayed: Option<u64>

(deprecated) Estimated flight delay time (in minutes).

§dep_delayed: Option<u64>

Estimated time of flight departure delay (in minutes).

§arr_delayed: Option<u64>

Estimated time of flight arrival delay (in minutes).

§updated: u64

UNIX timestamp of last aircraft signal.

§status: String

Current flight status - scheduled, en-route, landed.

§model: Option<String>

Aircraft full model name.

§manufacturer: Option<String>

Aircraft manufacturer name. Available in the Free plan.

§msn: Option<String>

Manufacturer serial number.

§type: Option<AircraftType>

Aircraft type - landplane, seaplane, tiltrotor, helicopter, gyrocopter, amphibian.

§engine: String

Aircraft engine type - jet, piston, turboprop/turboshaft, electric.

§engine_count: String

Aircraft engine number - 1, 2, 3, 4, 6, 8

§built: Option<u64>

Aircraft built year

§age: Option<u64>

Aircraft age (years)

§airline_name: Option<String>

Airline name. Available in the Free plan.

§dep_name: Option<String>

Departure airport name

§dep_city: Option<String>

Departure city

§dep_country: Option<String>

Departure country

§dep_actual: Option<String>

Actual departure time in the airport time zone.

§dep_actual_ts: Option<u64>

Actual departure time UNIX timestamp.

§dep_actual_utc: Option<String>

Actual departure time in the UTC time zone.

§arr_name: Option<String>

Arrival airport name

§arr_city: Option<String>

Arrival city

§arr_country: Option<String>

Arrival country

§arr_actual: Option<String>

Actual arrival time in the airport time zone.

§arr_actual_ts: Option<u64>

Actual arrival time UNIX timestamp.

§arr_actual_utc: Option<String>

Actual arrival time in the UTC time zone.

§eta: Option<u64>

ETA (in minutes).

§percent: Option<u64>

Don’t know what this is

§utc: Option<String>

Response time in UTC timezone

Trait Implementations§

Source§

impl Clone for Flight

Source§

fn clone(&self) -> Flight

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Flight

Source§

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

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

impl<'de> Deserialize<'de> for Flight

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 PartialEq for Flight

Source§

fn eq(&self, other: &Flight) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Flight

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
Source§

impl StructuralPartialEq for Flight

Auto Trait Implementations§

§

impl Freeze for Flight

§

impl RefUnwindSafe for Flight

§

impl Send for Flight

§

impl Sync for Flight

§

impl Unpin for Flight

§

impl UnwindSafe for Flight

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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>,