pub struct ContractBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ContractBuilder<S>
impl<S: State> ContractBuilder<S>
Sourcepub fn build(self) -> Contractwhere
S: IsComplete,
pub fn build(self) -> Contractwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn capacity(self, value: CapacityPlan) -> ContractBuilder<SetCapacity<S>>where
S::Capacity: IsUnset,
pub fn capacity(self, value: CapacityPlan) -> ContractBuilder<SetCapacity<S>>where
S::Capacity: IsUnset,
Required.
Capacity posture staff and automation must honor before confirming stays.
Sourcepub fn arrival_window(
self,
value: ServiceWindow,
) -> ContractBuilder<SetArrivalWindow<S>>where
S::ArrivalWindow: IsUnset,
pub fn arrival_window(
self,
value: ServiceWindow,
) -> ContractBuilder<SetArrivalWindow<S>>where
S::ArrivalWindow: IsUnset,
Required.
Guest arrival window used for front-desk staffing and check-in promises.
Sourcepub fn departure_window(
self,
value: ServiceWindow,
) -> ContractBuilder<SetDepartureWindow<S>>where
S::DepartureWindow: IsUnset,
pub fn departure_window(
self,
value: ServiceWindow,
) -> ContractBuilder<SetDepartureWindow<S>>where
S::DepartureWindow: IsUnset,
Required.
Guest departure window used for checkout staffing and Pawgress/report timing.
Sourcepub fn minimum_stay(self, value: Policy) -> ContractBuilder<SetMinimumStay<S>>where
S::MinimumStay: IsUnset,
pub fn minimum_stay(self, value: Policy) -> ContractBuilder<SetMinimumStay<S>>where
S::MinimumStay: IsUnset,
Required.
Minimum-stay rule for standard, holiday, or multi-pet boarding demand.
Sourcepub fn cancellation(self, value: Policy) -> ContractBuilder<SetCancellation<S>>where
S::Cancellation: IsUnset,
pub fn cancellation(self, value: Policy) -> ContractBuilder<SetCancellation<S>>where
S::Cancellation: IsUnset,
Required.
Cancellation policy that governs notice, deposit forfeiture, and manager review.
Sourcepub fn deposit(self, value: DepositRule) -> ContractBuilder<SetDeposit<S>>where
S::Deposit: IsUnset,
pub fn deposit(self, value: DepositRule) -> ContractBuilder<SetDeposit<S>>where
S::Deposit: IsUnset,
Required.
Deposit requirement used before staff or automation treats the booking as secured.
Sourcepub fn payment(self, value: PaymentTiming) -> ContractBuilder<SetPayment<S>>where
S::Payment: IsUnset,
pub fn payment(self, value: PaymentTiming) -> ContractBuilder<SetPayment<S>>where
S::Payment: IsUnset,
Required.
Payment timing that constrains collection workflow and front-desk labor.
Sourcepub fn housekeeping(self, value: Cadence) -> ContractBuilder<SetHousekeeping<S>>where
S::Housekeeping: IsUnset,
pub fn housekeeping(self, value: Cadence) -> ContractBuilder<SetHousekeeping<S>>where
S::Housekeeping: IsUnset,
Required.
Room-cleaning cadence that feeds labor planning for the stay.
Sourcepub fn handoff(self, value: Requirement) -> ContractBuilder<SetHandoff<S>>where
S::Handoff: IsUnset,
pub fn handoff(self, value: Requirement) -> ContractBuilder<SetHandoff<S>>where
S::Handoff: IsUnset,
Required.
Staff handoff checklist required at arrival, medication review, or departure.