pub struct BookedOffer {Show 13 fields
pub offer_id: String,
pub external_ref: Option<String>,
pub summary: Option<Option<String>>,
pub admissions: Option<Vec<Admission>>,
pub reservations: Option<Vec<Reservation>>,
pub ancillaries: Option<Vec<Ancillary>>,
pub continuous_services: Option<Vec<ContinuousServiceBookingPart>>,
pub fees: Option<Vec<Fee>>,
pub fares: Option<Vec<Fare>>,
pub trip_coverage: Option<Box<TripCoverage>>,
pub inbound_trip_coverage: Option<Box<TripCoverage>>,
pub applied_through_ticket_tags: Option<Vec<String>>,
pub products: Option<Vec<Product>>,
}Expand description
BookedOffer : The attribute ‘offerSummary’ is meaningful at trip-offer-collection response time only. The offerSummary must be provided for product based offers. It is not needed for fares.
Fields§
§offer_id: StringNote that the offerId returned does not necessarily match the offerId given in the Booking Request.
external_ref: Option<String>A stable reference to the id of the booked offer in the caller’s system. When received in input of a request, it must be persisted and echoed back in the response.
summary: Option<Option<String>>A human-readable description of the booked offer.
admissions: Option<Vec<Admission>>§reservations: Option<Vec<Reservation>>§ancillaries: Option<Vec<Ancillary>>§continuous_services: Option<Vec<ContinuousServiceBookingPart>>§fees: Option<Vec<Fee>>§fares: Option<Vec<Fare>>§trip_coverage: Option<Box<TripCoverage>>§inbound_trip_coverage: Option<Box<TripCoverage>>§products: Option<Vec<Product>>Implementations§
Source§impl BookedOffer
impl BookedOffer
Sourcepub fn new(offer_id: String) -> BookedOffer
pub fn new(offer_id: String) -> BookedOffer
The attribute ‘offerSummary’ is meaningful at trip-offer-collection response time only. The offerSummary must be provided for product based offers. It is not needed for fares.
Trait Implementations§
Source§impl Clone for BookedOffer
impl Clone for BookedOffer
Source§fn clone(&self) -> BookedOffer
fn clone(&self) -> BookedOffer
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 BookedOffer
impl Debug for BookedOffer
Source§impl Default for BookedOffer
impl Default for BookedOffer
Source§fn default() -> BookedOffer
fn default() -> BookedOffer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BookedOffer
impl<'de> Deserialize<'de> for BookedOffer
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 PartialEq for BookedOffer
impl PartialEq for BookedOffer
Source§impl Serialize for BookedOffer
impl Serialize for BookedOffer
impl StructuralPartialEq for BookedOffer
Auto Trait Implementations§
impl Freeze for BookedOffer
impl RefUnwindSafe for BookedOffer
impl Send for BookedOffer
impl Sync for BookedOffer
impl Unpin for BookedOffer
impl UnwindSafe for BookedOffer
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