pub struct CompartmentAvailability {
pub service_class: String,
pub accommodation_type: String,
pub accommodation_sub_type: String,
pub places: Vec<SpecificPlaceAvailability>,
pub is_selectable: bool,
pub number: Option<Option<String>>,
pub status: Option<AvailabilityStatus>,
pub reservation_refs: Option<Vec<ReservationReference>>,
pub selection_fee: Option<Box<SelectionFee>>,
}Expand description
CompartmentAvailability : Area within a coach deck that holds places.
Fields§
§service_class: StringType of quality level, finer grained than the comfort class. Values from the Service Class Code List Listed values here are examples.
accommodation_type: StringAccommodation type definition out of the Accommodation Type Code List Listed values here are examples.
accommodation_sub_type: StringAccommodation sub type definition out of the Accommodation Sub Type Code List Listed values here are examples.
places: Vec<SpecificPlaceAvailability>Seats or bicycle hooks in a coach compartment that are covered by a requested reservation fare/offerPart/bookingPart. No place availabilities must be returned for places that are NOT covered by a requested offer.
is_selectable: boolIndicates whether the compartment is selectable as a whole only.
number: Option<Option<String>>Compartment number as indicated at the compartment in the coach. A compartment number must be set if the compartment is selectable as a whole only.
status: Option<AvailabilityStatus>§reservation_refs: Option<Vec<ReservationReference>>reservationRefs must be set if the compartment is selectable as a whole only
selection_fee: Option<Box<SelectionFee>>Implementations§
Source§impl CompartmentAvailability
impl CompartmentAvailability
Sourcepub fn new(
service_class: String,
accommodation_type: String,
accommodation_sub_type: String,
places: Vec<SpecificPlaceAvailability>,
is_selectable: bool,
) -> CompartmentAvailability
pub fn new( service_class: String, accommodation_type: String, accommodation_sub_type: String, places: Vec<SpecificPlaceAvailability>, is_selectable: bool, ) -> CompartmentAvailability
Area within a coach deck that holds places.
Trait Implementations§
Source§impl Clone for CompartmentAvailability
impl Clone for CompartmentAvailability
Source§fn clone(&self) -> CompartmentAvailability
fn clone(&self) -> CompartmentAvailability
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 CompartmentAvailability
impl Debug for CompartmentAvailability
Source§impl Default for CompartmentAvailability
impl Default for CompartmentAvailability
Source§fn default() -> CompartmentAvailability
fn default() -> CompartmentAvailability
Source§impl<'de> Deserialize<'de> for CompartmentAvailability
impl<'de> Deserialize<'de> for CompartmentAvailability
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 CompartmentAvailability
impl PartialEq for CompartmentAvailability
Source§fn eq(&self, other: &CompartmentAvailability) -> bool
fn eq(&self, other: &CompartmentAvailability) -> bool
self and other values to be equal, and is used by ==.