Skip to main content

EvidenceBuilder

Struct EvidenceBuilder 

Source
pub struct EvidenceBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> EvidenceBuilder<S>

Source

pub fn build(self) -> Evidence
where S: IsComplete,

Finish building and return the requested object

Source

pub fn pet_id(self, value: PetId) -> EvidenceBuilder<SetPetId<S>>
where S::PetId: IsUnset,

Required.

Pet whose daycare eligibility is being evaluated.

Source

pub fn species(self, value: Species) -> EvidenceBuilder<SetSpecies<S>>
where S::Species: IsUnset,

Required.

Pet species used to prevent group-play rules from applying to unsupported care modes.

Source

pub fn service(self, value: ServiceVariant) -> EvidenceBuilder<SetService<S>>
where S::Service: IsUnset,

Required.

Requested service that drives scheduling and labor estimates.

Source

pub fn temperament( self, value: TemperamentAssessmentFreshness, ) -> EvidenceBuilder<SetTemperament<S>>
where S::Temperament: IsUnset,

Required.

Freshness of temperament assessment required for safe group assignment.

Source

pub fn vaccines( self, value: VaccineReadiness, ) -> EvidenceBuilder<SetVaccines<S>>
where S::Vaccines: IsUnset,

Required.

Vaccine proof readiness from source records or staff review.

Source

pub fn spay_neuter( self, value: SpayNeuterStatus, ) -> EvidenceBuilder<SetSpayNeuter<S>>
where S::SpayNeuter: IsUnset,

Required.

Spay/neuter status used for group-play policy review.

Source

pub fn incident(self, value: Restriction) -> EvidenceBuilder<SetIncident<S>>
where S::Incident: IsUnset,

Required.

Active incident restriction that may suspend group play.

Source

pub fn staff_coverage( self, value: Decision, ) -> EvidenceBuilder<SetStaffCoverage<S>>
where S::StaffCoverage: IsUnset,

Required.

Current staffing coverage decision used before admitting a pet to group play.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.