pub struct Contract {
pub calendar: Policy,
pub time_estimates: Vec<TimeEstimate>,
pub no_show: Rule,
pub rebooking: Cadence,
pub reminders: Vec<Rule>,
pub history: HistoryRequirement,
}Expand description
Location grooming contract tying calendar assignment, estimate policy, no-show rules, rebooking cadence, reminders, and history retention together.
Fields§
§calendar: PolicySource-derived calendar carried by this grooming contract.
time_estimates: Vec<TimeEstimate>Source-derived time estimates carried by this grooming contract.
no_show: RuleSource-derived no show carried by this grooming contract.
rebooking: CadenceSource-derived rebooking carried by this grooming contract.
reminders: Vec<Rule>Source-derived reminders carried by this grooming contract.
history: HistoryRequirementSource-derived history carried by this grooming contract.
Implementations§
Source§impl Contract
impl Contract
Sourcepub fn builder() -> ContractBuilder
pub fn builder() -> ContractBuilder
Create an instance of Contract using the builder syntax
Source§impl Contract
impl Contract
Sourcepub fn requires_deposit_after_no_show(&self) -> bool
pub fn requires_deposit_after_no_show(&self) -> bool
Reports whether prior no-shows should trigger a deposit or manager review before rebooking.
Sourcepub fn standard_petsuites() -> Self
pub fn standard_petsuites() -> Self
Builds a representative PetSuites-style grooming contract for docs/tests without claiming it is live policy.