pub struct Reservation {
pub kind: String,
pub name: Option<String>,
pub reservation_id: Option<String>,
pub status: Option<String>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub location: Option<String>,
pub provider: Option<String>,
pub departure_airport: Option<String>,
pub arrival_airport: Option<String>,
pub flight_number: Option<String>,
}Expand description
One reservation (flight, hotel, restaurant, rental car, etc).
Fields§
§kind: StringReservation kind: flight / hotel / restaurant / rental_car.
name: Option<String>Display name (hotel name, restaurant name, etc).
reservation_id: Option<String>Reservation confirmation code.
status: Option<String>Status string (confirmed / cancelled / pending).
start_date: Option<String>ISO-8601 start date / time.
end_date: Option<String>ISO-8601 end date / time.
location: Option<String>Location (address / city / airport).
provider: Option<String>Provider / brand (airline, hotel chain, etc).
departure_airport: Option<String>IATA code or name of the departure airport (flight only).
arrival_airport: Option<String>IATA code or name of the arrival airport (flight only).
flight_number: Option<String>Flight number (flight only).
Trait Implementations§
Source§impl Clone for Reservation
impl Clone for Reservation
Source§fn clone(&self) -> Reservation
fn clone(&self) -> Reservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Reservation
impl Debug for Reservation
Source§impl<'de> Deserialize<'de> for Reservation
impl<'de> Deserialize<'de> for Reservation
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 Reservation
impl RefUnwindSafe for Reservation
impl Send for Reservation
impl Sync for Reservation
impl Unpin for Reservation
impl UnsafeUnpin for Reservation
impl UnwindSafe for Reservation
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