pub struct RequestBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> RequestBuilder<S>
impl<S: State> RequestBuilder<S>
Sourcepub fn build(self) -> Requestwhere
S: IsComplete,
pub fn build(self) -> Requestwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn pet_id(self, value: PetId) -> RequestBuilder<SetPetId<S>>where
S::PetId: IsUnset,
pub fn pet_id(self, value: PetId) -> RequestBuilder<SetPetId<S>>where
S::PetId: IsUnset,
Required.
Pet being considered for playgroup assignment.
Sourcepub fn service(self, value: ServiceVariant) -> RequestBuilder<SetService<S>>where
S::Service: IsUnset,
pub fn service(self, value: ServiceVariant) -> RequestBuilder<SetService<S>>where
S::Service: IsUnset,
Required.
Requested service that drives scheduling and labor estimates.
Sourcepub fn eligibility(
self,
value: GroupPlayDecision,
) -> RequestBuilder<SetEligibility<S>>where
S::Eligibility: IsUnset,
pub fn eligibility(
self,
value: GroupPlayDecision,
) -> RequestBuilder<SetEligibility<S>>where
S::Eligibility: IsUnset,
Required.
Group-play eligibility decision that must be clear before assignment.
Sourcepub fn coverage(self, value: Decision) -> RequestBuilder<SetCoverage<S>>where
S::Coverage: IsUnset,
pub fn coverage(self, value: Decision) -> RequestBuilder<SetCoverage<S>>where
S::Coverage: IsUnset,
Required.
Staffing coverage decision that must be sufficient before assignment.
Sourcepub fn playgroup(self, value: PlaygroupId) -> RequestBuilder<SetPlaygroup<S>>where
S::Playgroup: IsUnset,
pub fn playgroup(self, value: PlaygroupId) -> RequestBuilder<SetPlaygroup<S>>where
S::Playgroup: IsUnset,
Required.
Candidate playgroup selected from resort operations data.
Auto Trait Implementations§
impl<S> Freeze for RequestBuilder<S>
impl<S> RefUnwindSafe for RequestBuilder<S>
impl<S> Send for RequestBuilder<S>
impl<S> Sync for RequestBuilder<S>
impl<S> Unpin for RequestBuilder<S>
impl<S> UnsafeUnpin for RequestBuilder<S>
impl<S> UnwindSafe for RequestBuilder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more