pub struct Contract {
pub program_duration: Duration,
pub curriculum: Vec<Unit>,
pub progress: ProgressTracking,
pub outcomes: Vec<Outcome>,
pub trainer_availability: Availability,
pub package: Policy,
pub follow_up: FollowUpCadence,
}Expand description
Location training ruleset tying program duration, curriculum, progress depth, outcomes, trainer availability, package policy, and follow-up cadence together.
Fields§
§program_duration: DurationProgram duration used by staff to prepare training assignment, package, progress, or parent-summary review.
curriculum: Vec<Unit>Curriculum used by staff to prepare training assignment, package, progress, or parent-summary review.
progress: ProgressTrackingProgress used by staff to prepare training assignment, package, progress, or parent-summary review.
outcomes: Vec<Outcome>Outcomes used by staff to prepare training assignment, package, progress, or parent-summary review.
trainer_availability: AvailabilityTrainer availability used by staff to prepare training assignment, package, progress, or parent-summary review.
package: PolicyPackage used by staff to prepare training assignment, package, progress, or parent-summary review.
follow_up: FollowUpCadenceFollow up used by staff to prepare training assignment, package, progress, or parent-summary review.
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_named_trainer(&self) -> bool
pub fn requires_named_trainer(&self) -> bool
Reports whether trainer assignment must use a named or waitlisted trainer.
Sourcepub fn has_outcome(&self, outcome: &Outcome) -> bool
pub fn has_outcome(&self, outcome: &Outcome) -> bool
Reports whether the location training rules include the requested outcome claim.
Sourcepub fn standard_petsuites() -> Self
pub fn standard_petsuites() -> Self
Builds representative PetSuites-style training rules for docs/tests without claiming they are live policy.