Skip to main content

Module coverage

Module coverage 

Source
Expand description

Daycare staff-coverage policy for group-play ratio review.

use domain::{daycare, policy};

let roster = daycare::coverage::RosterSnapshot::new(
    daycare::StaffCount::try_new(1).unwrap(),
    daycare::PetCount::try_new(18).unwrap(),
);
let allowed_ratio = daycare::StaffPetRatio::new(
    daycare::StaffCount::try_new(1).unwrap(),
    daycare::PetCount::try_new(12).unwrap(),
);

assert_eq!(
    daycare::coverage::Policy.evaluate(&roster, allowed_ratio),
    daycare::coverage::Decision::Insufficient {
        reason: daycare::coverage::InsufficiencyReason::RatioExceeded,
        gate: policy::ReviewGate::ManagerApproval,
    },
);

Structs§

Policy
Deterministic staffing-coverage policy for daycare ratio review.
RosterSnapshot
Point-in-time daycare roster evidence for staffing-ratio decisions.

Enums§

Decision
Staffing coverage decision used by eligibility, assignment, and front-desk routing.
InsufficiencyReason
Reasons daycare staffing coverage is insufficient.