pub struct BookingRequest {
pub offers: Vec<OfferSelection>,
pub passenger_specifications: Vec<PassengerSpecification>,
pub purchaser: Option<Box<PurchaserSpecification>>,
pub promotion_codes: Option<Vec<PromotionCode>>,
pub requested_fulfillment_type: Option<String>,
pub preferred_fulfillment_media: Option<String>,
pub embed: Option<Vec<BookingResponseContent>>,
pub external_ref: Option<Option<String>>,
}Fields§
§offers: Vec<OfferSelection>The list of offers that need to be provisionally booked, with possibly the reservations and ancillaries associated that should be booked as well.
passenger_specifications: Vec<PassengerSpecification>If needed (cf requiredInformation) or desired, this array allows providing the required details on some or all passengers
purchaser: Option<Box<PurchaserSpecification>>§promotion_codes: Option<Vec<PromotionCode>>§requested_fulfillment_type: Option<String>Values from the Fulfillment Type Code List Listed values here are examples.
preferred_fulfillment_media: Option<String>Fulfillment types. RCT2, RCCST and UIC_PDF are official UIC standards. Notice:ALLOCATOR_APP is deprecated and should not be used anymore. The ALLOCATOR_APP type is replaced by the RETAILER_APP type. DISTRIBUTOR_APP was introduced to distinguish between the different types of apps that can be used to fulfill a booking. Values from the Fulfillment Media Type Code List Listed values here are examples.
embed: Option<Vec<BookingResponseContent>>Influences whether referenced resources are returned in full or as references only.
external_ref: Option<Option<String>>Implementations§
Source§impl BookingRequest
impl BookingRequest
pub fn new( offers: Vec<OfferSelection>, passenger_specifications: Vec<PassengerSpecification>, ) -> BookingRequest
Trait Implementations§
Source§impl Clone for BookingRequest
impl Clone for BookingRequest
Source§fn clone(&self) -> BookingRequest
fn clone(&self) -> BookingRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BookingRequest
impl Debug for BookingRequest
Source§impl Default for BookingRequest
impl Default for BookingRequest
Source§fn default() -> BookingRequest
fn default() -> BookingRequest
Source§impl<'de> Deserialize<'de> for BookingRequest
impl<'de> Deserialize<'de> for BookingRequest
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>,
Source§impl PartialEq for BookingRequest
impl PartialEq for BookingRequest
Source§fn eq(&self, other: &BookingRequest) -> bool
fn eq(&self, other: &BookingRequest) -> bool
self and other values to be equal, and is used by ==.