pub struct SpecificPlaceAvailability {
pub number: String,
pub status: AvailabilityStatus,
pub reservation_refs: Vec<ReservationReference>,
pub selection_fee: Option<Box<SelectionFee>>,
}Expand description
SpecificPlaceAvailability : Availability status of a specific place.
Fields§
§number: StringPlace number as indicated at the place in the coach.
status: AvailabilityStatus§reservation_refs: Vec<ReservationReference>References requested reservation fares/offerParts/bookingParts that allow the selection of the place. This allows clients to link place availabilities with the corresponding reservation fare/offerPart/bookingPart. E.g. link a bicycle hook with a bicycle reservationOfferPart.
selection_fee: Option<Box<SelectionFee>>Implementations§
Source§impl SpecificPlaceAvailability
impl SpecificPlaceAvailability
Sourcepub fn new(
number: String,
status: AvailabilityStatus,
reservation_refs: Vec<ReservationReference>,
) -> SpecificPlaceAvailability
pub fn new( number: String, status: AvailabilityStatus, reservation_refs: Vec<ReservationReference>, ) -> SpecificPlaceAvailability
Availability status of a specific place.
Trait Implementations§
Source§impl Clone for SpecificPlaceAvailability
impl Clone for SpecificPlaceAvailability
Source§fn clone(&self) -> SpecificPlaceAvailability
fn clone(&self) -> SpecificPlaceAvailability
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 SpecificPlaceAvailability
impl Debug for SpecificPlaceAvailability
Source§impl Default for SpecificPlaceAvailability
impl Default for SpecificPlaceAvailability
Source§fn default() -> SpecificPlaceAvailability
fn default() -> SpecificPlaceAvailability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpecificPlaceAvailability
impl<'de> Deserialize<'de> for SpecificPlaceAvailability
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 SpecificPlaceAvailability
Auto Trait Implementations§
impl Freeze for SpecificPlaceAvailability
impl RefUnwindSafe for SpecificPlaceAvailability
impl Send for SpecificPlaceAvailability
impl Sync for SpecificPlaceAvailability
impl Unpin for SpecificPlaceAvailability
impl UnwindSafe for SpecificPlaceAvailability
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