pub struct PlaceAllocation {
pub accommodation_type: String,
pub accommodation_sub_type: String,
pub reserved_places: Vec<ReservedPlace>,
pub trip_leg_coverage: Box<TripLegCoverage>,
}Expand description
PlaceAllocation : Describes the details of the reserved place(s).
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.
reserved_places: Vec<ReservedPlace>Reserved places in a confirmed reservation. Multiple place packs are needed to combined person and bicycle reservations
trip_leg_coverage: Box<TripLegCoverage>Implementations§
Source§impl PlaceAllocation
impl PlaceAllocation
Sourcepub fn new(
accommodation_type: String,
accommodation_sub_type: String,
reserved_places: Vec<ReservedPlace>,
trip_leg_coverage: TripLegCoverage,
) -> PlaceAllocation
pub fn new( accommodation_type: String, accommodation_sub_type: String, reserved_places: Vec<ReservedPlace>, trip_leg_coverage: TripLegCoverage, ) -> PlaceAllocation
Describes the details of the reserved place(s).
Trait Implementations§
Source§impl Clone for PlaceAllocation
impl Clone for PlaceAllocation
Source§fn clone(&self) -> PlaceAllocation
fn clone(&self) -> PlaceAllocation
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 PlaceAllocation
impl Debug for PlaceAllocation
Source§impl Default for PlaceAllocation
impl Default for PlaceAllocation
Source§fn default() -> PlaceAllocation
fn default() -> PlaceAllocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaceAllocation
impl<'de> Deserialize<'de> for PlaceAllocation
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 PlaceAllocation
impl PartialEq for PlaceAllocation
Source§impl Serialize for PlaceAllocation
impl Serialize for PlaceAllocation
impl StructuralPartialEq for PlaceAllocation
Auto Trait Implementations§
impl Freeze for PlaceAllocation
impl RefUnwindSafe for PlaceAllocation
impl Send for PlaceAllocation
impl Sync for PlaceAllocation
impl Unpin for PlaceAllocation
impl UnwindSafe for PlaceAllocation
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