pub struct RosterSnapshot { /* private fields */ }Expand description
Point-in-time daycare roster evidence for staffing-ratio decisions.
Implementations§
Source§impl RosterSnapshot
impl RosterSnapshot
Sourcepub const fn new(scheduled_staff: StaffCount, checked_in_pets: PetCount) -> Self
pub const fn new(scheduled_staff: StaffCount, checked_in_pets: PetCount) -> Self
Creates a roster snapshot from scheduled staff and checked-in pet counts.
Sourcepub const fn scheduled_staff(&self) -> StaffCount
pub const fn scheduled_staff(&self) -> StaffCount
Returns scheduled staff available to supervise daycare pets.
Sourcepub const fn checked_in_pets(&self) -> PetCount
pub const fn checked_in_pets(&self) -> PetCount
Returns pets already checked in and counted against the staffing ratio.
Trait Implementations§
Source§impl Clone for RosterSnapshot
impl Clone for RosterSnapshot
Source§fn clone(&self) -> RosterSnapshot
fn clone(&self) -> RosterSnapshot
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 RosterSnapshot
impl Debug for RosterSnapshot
Source§impl<'de> Deserialize<'de> for RosterSnapshot
impl<'de> Deserialize<'de> for RosterSnapshot
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 RosterSnapshot
impl PartialEq for RosterSnapshot
Source§impl Serialize for RosterSnapshot
impl Serialize for RosterSnapshot
impl Copy for RosterSnapshot
impl Eq for RosterSnapshot
impl StructuralPartialEq for RosterSnapshot
Auto Trait Implementations§
impl Freeze for RosterSnapshot
impl RefUnwindSafe for RosterSnapshot
impl Send for RosterSnapshot
impl Sync for RosterSnapshot
impl Unpin for RosterSnapshot
impl UnsafeUnpin for RosterSnapshot
impl UnwindSafe for RosterSnapshot
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