pub struct StaffPetRatio { /* private fields */ }Expand description
Staff-to-pet ratio used to decide whether group-play coverage is sufficient.
Implementations§
Source§impl StaffPetRatio
impl StaffPetRatio
Sourcepub const fn new(staff: StaffCount, pets: PetCount) -> Self
pub const fn new(staff: StaffCount, pets: PetCount) -> Self
Creates the daycare value from validated domain parts without trusting raw source primitives.
Sourcepub const fn pets_per_staff(&self) -> PetCount
pub const fn pets_per_staff(&self) -> PetCount
Returns the allowed pet count per staff member for coverage checks.
Sourcepub const fn staff(&self) -> StaffCount
pub const fn staff(&self) -> StaffCount
Returns the staff side of the ratio used by coverage checks.
Trait Implementations§
Source§impl Clone for StaffPetRatio
impl Clone for StaffPetRatio
Source§fn clone(&self) -> StaffPetRatio
fn clone(&self) -> StaffPetRatio
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 StaffPetRatio
impl Debug for StaffPetRatio
Source§impl<'de> Deserialize<'de> for StaffPetRatio
impl<'de> Deserialize<'de> for StaffPetRatio
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 StaffPetRatio
impl PartialEq for StaffPetRatio
Source§impl Serialize for StaffPetRatio
impl Serialize for StaffPetRatio
impl Copy for StaffPetRatio
impl Eq for StaffPetRatio
impl StructuralPartialEq for StaffPetRatio
Auto Trait Implementations§
impl Freeze for StaffPetRatio
impl RefUnwindSafe for StaffPetRatio
impl Send for StaffPetRatio
impl Sync for StaffPetRatio
impl Unpin for StaffPetRatio
impl UnsafeUnpin for StaffPetRatio
impl UnwindSafe for StaffPetRatio
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