pub struct AvailablePlace {
pub accommodation_type: String,
pub accommodation_sub_type: String,
pub place_properties: Option<Option<Vec<String>>>,
pub numeric_availability: Option<Option<i32>>,
pub trip_leg_coverage: Box<TripLegCoverage>,
}Expand description
AvailablePlace : Describes the details of the available places.
Fields§
§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.
place_properties: Option<Option<Vec<String>>>Selectable place properties for the offer. For AccommodationSubType=ANY_SEAT all available and bookable properties need to be returned to give a sales tool a list of possible selections.
numeric_availability: Option<Option<i32>>For the AccommodationSubType=ANY_SEAT the total amount of places for the combination of AccommodationType and AccommodationSubType needs to returned.
trip_leg_coverage: Box<TripLegCoverage>Implementations§
Source§impl AvailablePlace
impl AvailablePlace
Sourcepub fn new(
accommodation_type: String,
accommodation_sub_type: String,
trip_leg_coverage: TripLegCoverage,
) -> AvailablePlace
pub fn new( accommodation_type: String, accommodation_sub_type: String, trip_leg_coverage: TripLegCoverage, ) -> AvailablePlace
Describes the details of the available places.
Trait Implementations§
Source§impl Clone for AvailablePlace
impl Clone for AvailablePlace
Source§fn clone(&self) -> AvailablePlace
fn clone(&self) -> AvailablePlace
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 AvailablePlace
impl Debug for AvailablePlace
Source§impl Default for AvailablePlace
impl Default for AvailablePlace
Source§fn default() -> AvailablePlace
fn default() -> AvailablePlace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AvailablePlace
impl<'de> Deserialize<'de> for AvailablePlace
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 AvailablePlace
impl PartialEq for AvailablePlace
Source§impl Serialize for AvailablePlace
impl Serialize for AvailablePlace
impl StructuralPartialEq for AvailablePlace
Auto Trait Implementations§
impl Freeze for AvailablePlace
impl RefUnwindSafe for AvailablePlace
impl Send for AvailablePlace
impl Sync for AvailablePlace
impl Unpin for AvailablePlace
impl UnwindSafe for AvailablePlace
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