pub struct CarrierData {
pub code: Option<String>,
pub kind: Option<String>,
pub name: Option<String>,
}Expand description
Information about a carrier (ie. an airline, bus line, railroad, etc) that might be useful to display to an end-user.
This type is not used in any activity, and only used as part of another schema.
Fields§
§code: Option<String>The IATA designator of a carrier (airline, etc). For example, for American Airlines, the code is AA.
kind: Option<String>Identifies this as a kind of carrier (ie. an airline, bus line, railroad, etc). Value: the fixed string qpxexpress#carrierData.
name: Option<String>The long, full name of a carrier. For example: American Airlines.
Trait Implementations§
Source§impl Clone for CarrierData
impl Clone for CarrierData
Source§fn clone(&self) -> CarrierData
fn clone(&self) -> CarrierData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CarrierData
impl Debug for CarrierData
Source§impl Default for CarrierData
impl Default for CarrierData
Source§fn default() -> CarrierData
fn default() -> CarrierData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CarrierData
impl<'de> Deserialize<'de> for CarrierData
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
Source§impl Serialize for CarrierData
impl Serialize for CarrierData
impl Part for CarrierData
Auto Trait Implementations§
impl Freeze for CarrierData
impl RefUnwindSafe for CarrierData
impl Send for CarrierData
impl Sync for CarrierData
impl Unpin for CarrierData
impl UnwindSafe for CarrierData
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