pub struct Request {
pub location_id: LocationId,
pub species: Species,
pub accommodation: Preference,
}Expand description
Boarding capacity request for a location, species, and accommodation preference.
Fields§
§location_id: LocationIdResort location whose room inventory is the authority for this check.
species: SpeciesPet species used to reject incompatible room types before availability is promised.
accommodation: PreferenceAccommodation preference requested by the guest or staff workflow.
Implementations§
Source§impl Request
impl Request
Sourcepub const fn new(
location_id: LocationId,
species: Species,
accommodation: Preference,
) -> Self
pub const fn new( location_id: LocationId, species: Species, accommodation: Preference, ) -> Self
Creates a capacity request from already-identified location, species, and preference values.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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