pub struct CityData {
pub code: Option<String>,
pub country: Option<String>,
pub kind: Option<String>,
pub name: Option<String>,
}Expand description
Information about a city that might be useful to an end-user; typically the city of an airport.
This type is not used in any activity, and only used as part of another schema.
Fields§
§code: Option<String>The IATA character ID of a city. For example, for Boston this is BOS.
country: Option<String>The two-character country code of the country the city is located in. For example, US for the United States of America.
kind: Option<String>Identifies this as a city, typically with one or more airports. Value: the fixed string qpxexpress#cityData.
name: Option<String>The full name of a city. An example would be: New York.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CityData
impl<'de> Deserialize<'de> for CityData
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
impl Part for CityData
Auto Trait Implementations§
impl Freeze for CityData
impl RefUnwindSafe for CityData
impl Send for CityData
impl Sync for CityData
impl Unpin for CityData
impl UnwindSafe for CityData
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