Expand description
Daycare contracts for eligibility, attendance, yard assignment, coverage, and throughput. Daycare service rules for front-desk throughput, safe play, and package review.
Operator summary: this module supports check-in lane, coverage, group-play eligibility, playgroup assignment, incident-restriction, and package-opportunity decisions for front-desk, care-team, and manager queues. It reduces repeated manual lookups of attendance policy, package state, staff-to-pet ratio, temperament/vaccine readiness, incident status, and customer-message readiness.
Use it when the operational question is “can this pet enter the daycare flow safely,
where should staff route the work, and what review gate still stands between a draft
recommendation and a live action?” The next step is to start with the location rules for
location policy, then follow the child modules for the queue you are working: front_desk
for check-in, eligibility for play clearance, coverage for ratio risk,
assignment for playgroup fit, incident for restrictions, or package_opportunity
for billing/customer-message review.
It does not authorize live admission, provider writes, reservation mutation, payment collection, package enrollment, customer sends, incident reinstatement, or manager overrides. Reservation/pet/source provenance, staff roster facts, package/payment state, and the location daycare rules remain authoritative inputs; review gates such as behavior review, medical/document review, manager approval, customer-message approval, and billing review protect pets, customers, and staff before any side effect.
The module keeps care mode, eligibility, staffing ratios, and package policy explicit so automated recommendations reduce check-in labor without bypassing staff review:
use domain::daycare;
let rules = daycare::Contract::standard_petsuites();
assert!(rules.requires_staff_review_before_group_play());
assert_eq!(
daycare::ServiceVariant::DayBoarding.care_mode(),
daycare::CareMode::DogIndividualDayBoarding,
);Modules§
- assignment
- Daycare playgroup assignment decisions after eligibility and coverage are known.
- attendance
- Daycare recurring-attendance materialization for predictable front-desk work queues.
- coverage
- Daycare staff-coverage policy for group-play ratio review.
- eligibility
- Daycare group-play eligibility policy for source-grounded staff review.
- front_
desk - Daycare front-desk readiness decisions for faster, safer check-in lanes.
- incident
- Daycare incident disposition rules that preserve pet-safety review gates.
- package_
opportunity - Daycare package-opportunity policy for review-gated membership/pass recommendations.
Structs§
- Contract
- Daycare service-line ruleset combining attendance, package, ratio, assignment, incident, and eligibility policy.
- Contract
Builder - Use builder syntax to set the inputs and finish with
build(). - Package
Visits - Positive daycare quantity used where zero would hide real staffing, pet-count, queue, or package volume.
- PetCount
- Positive daycare quantity used where zero would hide real staffing, pet-count, queue, or package volume.
- Staff
Count - Positive daycare quantity used where zero would hide real staffing, pet-count, queue, or package volume.
- Staff
PetRatio - Staff-to-pet ratio used to decide whether group-play coverage is sufficient.
Enums§
- Attendance
Policy - Attendance policy controlling whether daycare check-in is drop-in, reserved, or waitlisted.
- Care
Mode - Operational care mode that determines whether group-play, individual care, or cat enrichment rules apply.
- Eligibility
Requirement - Evidence requirements that must be satisfied before daycare care modes proceed.
- Group
Assignment Rule - Rule used to choose or restrict daycare group assignment.
- Package
Policy - Daycare payment/package model used for collection and recommendation workflows.
- Package
Visits Error - Validation failure returned when a required positive daycare scalar is zero.
- PetCount
Error - Validation failure returned when a required positive daycare scalar is zero.
- Service
Variant - Daycare service variant requested by a customer or reservation workflow.
- Staff
Count Error - Validation failure returned when a required positive daycare scalar is zero.