pub struct Offer {Show 16 fields
pub offer_id: String,
pub summary: Option<Option<String>>,
pub offer_summary: Option<Box<OfferSummary>>,
pub created_on: String,
pub pre_bookable_until: String,
pub passenger_refs: Vec<String>,
pub products: Option<Vec<Product>>,
pub trip_coverage: Option<Box<TripCoverage>>,
pub inbound_trip_coverage: Option<Box<TripCoverage>>,
pub admission_offer_parts: Option<Vec<AdmissionOfferPart>>,
pub reservation_offer_parts: Option<Vec<ReservationOfferPart>>,
pub ancillary_offer_parts: Option<Vec<AncillaryOfferPart>>,
pub continuous_service_offer_parts: Option<Vec<ContinuousServiceOfferPart>>,
pub fees: Option<Vec<Fee>>,
pub fares: Option<Vec<Fare>>,
pub _links: Option<Vec<Link>>,
}Fields§
§offer_id: String§summary: Option<Option<String>>A human-readable description of the offer.
offer_summary: Option<Box<OfferSummary>>§created_on: String§pre_bookable_until: Stringtime until the offer can be pre-booked, however its availability is not guaranteed
passenger_refs: Vec<String>§products: Option<Vec<Product>>§trip_coverage: Option<Box<TripCoverage>>§inbound_trip_coverage: Option<Box<TripCoverage>>§admission_offer_parts: Option<Vec<AdmissionOfferPart>>§reservation_offer_parts: Option<Vec<ReservationOfferPart>>§ancillary_offer_parts: Option<Vec<AncillaryOfferPart>>§continuous_service_offer_parts: Option<Vec<ContinuousServiceOfferPart>>§fees: Option<Vec<Fee>>§fares: Option<Vec<Fare>>§_links: Option<Vec<Link>>Java Property Name: ‘links’
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Offer
impl<'de> Deserialize<'de> for Offer
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
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Freeze for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnwindSafe for Offer
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