pub struct PassengerCounts {
pub adult_count: Option<i32>,
pub child_count: Option<i32>,
pub infant_in_lap_count: Option<i32>,
pub infant_in_seat_count: Option<i32>,
pub kind: Option<String>,
pub senior_count: Option<i32>,
}Expand description
The number and type of passengers. Unfortunately the definition of an infant, child, adult, and senior citizen varies across carriers and reservation systems.
This type is not used in any activity, and only used as part of another schema.
Fields§
§adult_count: Option<i32>The number of passengers that are adults.
child_count: Option<i32>The number of passengers that are children.
infant_in_lap_count: Option<i32>The number of passengers that are infants travelling in the lap of an adult.
infant_in_seat_count: Option<i32>The number of passengers that are infants each assigned a seat.
kind: Option<String>Identifies this as a passenger count object, representing the number of passengers. Value: the fixed string qpxexpress#passengerCounts.
senior_count: Option<i32>The number of passengers that are senior citizens.
Trait Implementations§
Source§impl Clone for PassengerCounts
impl Clone for PassengerCounts
Source§fn clone(&self) -> PassengerCounts
fn clone(&self) -> PassengerCounts
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 PassengerCounts
impl Debug for PassengerCounts
Source§impl Default for PassengerCounts
impl Default for PassengerCounts
Source§fn default() -> PassengerCounts
fn default() -> PassengerCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PassengerCounts
impl<'de> Deserialize<'de> for PassengerCounts
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 PassengerCounts
impl Serialize for PassengerCounts
impl Part for PassengerCounts
Auto Trait Implementations§
impl Freeze for PassengerCounts
impl RefUnwindSafe for PassengerCounts
impl Send for PassengerCounts
impl Sync for PassengerCounts
impl Unpin for PassengerCounts
impl UnwindSafe for PassengerCounts
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