pub struct Airport {
pub name: String,
pub iata: String,
pub icao: String,
pub lon: f64,
pub lat: f64,
pub elevation: i32,
pub country: Country,
pub city: String,
pub state: Option<String>,
pub timezone: Timezone,
}Expand description
Result airport data from airport/full endpoint
Fields§
§name: String§iata: String§icao: String§lon: f64§lat: f64§elevation: i32§country: Country§city: String§state: Option<String>§timezone: TimezoneTrait 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