pub struct CapacityPlan {
pub availability: RoomAvailability,
/* private fields */
}Expand description
Capacity posture for a boarding contract, pairing inventory with availability status.
Fields§
§availability: RoomAvailabilityStaff-facing availability status derived from resort capacity evidence.
Implementations§
Source§impl CapacityPlan
impl CapacityPlan
Sourcepub const fn new(
room_inventory: RoomInventory,
availability: RoomAvailability,
) -> Self
pub const fn new( room_inventory: RoomInventory, availability: RoomAvailability, ) -> Self
Creates the boarding value from validated domain parts without re-reading source systems.
Sourcepub const fn room_inventory(&self) -> RoomInventory
pub const fn room_inventory(&self) -> RoomInventory
Returns the inventory count represented by this capacity plan.
Trait Implementations§
Source§impl Clone for CapacityPlan
impl Clone for CapacityPlan
Source§fn clone(&self) -> CapacityPlan
fn clone(&self) -> CapacityPlan
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 CapacityPlan
impl Debug for CapacityPlan
Source§impl<'de> Deserialize<'de> for CapacityPlan
impl<'de> Deserialize<'de> for CapacityPlan
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 CapacityPlan
impl PartialEq for CapacityPlan
Source§impl Serialize for CapacityPlan
impl Serialize for CapacityPlan
impl Copy for CapacityPlan
impl Eq for CapacityPlan
impl StructuralPartialEq for CapacityPlan
Auto Trait Implementations§
impl Freeze for CapacityPlan
impl RefUnwindSafe for CapacityPlan
impl Send for CapacityPlan
impl Sync for CapacityPlan
impl Unpin for CapacityPlan
impl UnsafeUnpin for CapacityPlan
impl UnwindSafe for CapacityPlan
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