pub struct Airport {Show 18 fields
pub iata: String,
pub icao: String,
pub timezone: String,
pub utc: Option<f64>,
pub country_code: String,
pub continent: String,
pub airport: String,
pub latitude: f64,
pub longitude: f64,
pub elevation_ft: Option<i64>,
pub airport_type: String,
pub scheduled_service: bool,
pub wikipedia: String,
pub website: String,
pub runway_length: Option<i64>,
pub flightradar24_url: String,
pub radarbox_url: String,
pub flightaware_url: String,
}Expand description
Represents a single airport with all its associated data.
Fields§
§iata: String3-letter IATA code (may be empty for some airports)
icao: String4-letter ICAO code (may be empty for some airports)
timezone: StringTimezone identifier (e.g. “Asia/Singapore”)
utc: Option<f64>UTC offset (can be fractional, e.g. 5.5 for India; None if unavailable)
country_code: String2-letter country code
continent: String2-letter continent code (AS, EU, NA, SA, AF, OC, AN)
airport: StringAirport name
latitude: f64Latitude coordinate
longitude: f64Longitude coordinate
elevation_ft: Option<i64>Elevation in feet (may be None if data unavailable)
airport_type: StringAirport type (large_airport, medium_airport, small_airport, heliport, seaplane_base)
scheduled_service: boolWhether the airport has scheduled commercial service
wikipedia: StringWikipedia URL
website: StringAirport website URL
runway_length: Option<i64>Longest runway length in feet (may be None if data unavailable)
flightradar24_url: StringFlightRadar24 URL
radarbox_url: StringRadarBox URL
flightaware_url: StringFlightAware URL
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Airport
impl<'de> Deserialize<'de> for Airport
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Airport
impl RefUnwindSafe for Airport
impl Send for Airport
impl Sync for Airport
impl Unpin for Airport
impl UnsafeUnpin for Airport
impl UnwindSafe for Airport
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
Mutably borrows from an owned value. Read more