pub struct CandidateBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CandidateBuilder<S>
impl<S: State> CandidateBuilder<S>
Sourcepub fn build(self) -> Candidatewhere
S: IsComplete,
pub fn build(self) -> Candidatewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn customer_id(
self,
value: CustomerId,
) -> CandidateBuilder<SetCustomerId<S>>where
S::CustomerId: IsUnset,
pub fn customer_id(
self,
value: CustomerId,
) -> CandidateBuilder<SetCustomerId<S>>where
S::CustomerId: IsUnset,
Required.
Customer whose preferences and opt-out status control whether recommendation work may proceed.
Sourcepub fn pet_id(self, value: PetId) -> CandidateBuilder<SetPetId<S>>where
S::PetId: IsUnset,
pub fn pet_id(self, value: PetId) -> CandidateBuilder<SetPetId<S>>where
S::PetId: IsUnset,
Required.
Pet receiving the grooming or care service.
Sourcepub fn location_id(
self,
value: LocationId,
) -> CandidateBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
pub fn location_id(
self,
value: LocationId,
) -> CandidateBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
Required.
Location where inventory and staff review capacity are evaluated for this candidate.
Sourcepub fn product(self, value: Product) -> CandidateBuilder<SetProduct<S>>where
S::Product: IsUnset,
pub fn product(self, value: Product) -> CandidateBuilder<SetProduct<S>>where
S::Product: IsUnset,
Required.
Product being considered for an internal upsell candidate, not an automatic customer send.
Sourcepub fn reason(self, value: Reason) -> CandidateBuilder<SetReason<S>>where
S::Reason: IsUnset,
pub fn reason(self, value: Reason) -> CandidateBuilder<SetReason<S>>where
S::Reason: IsUnset,
Required.
Internal reason staff see when deciding whether the recommendation is useful and safe.
Sourcepub fn rationale(self, value: Text) -> CandidateBuilder<SetRationale<S>>where
S::Rationale: IsUnset,
pub fn rationale(self, value: Text) -> CandidateBuilder<SetRationale<S>>where
S::Rationale: IsUnset,
Required.
Staff-readable rationale explaining the source event or care context behind the candidate.
Sourcepub fn care_sensitivity(
self,
value: CareSensitivity,
) -> CandidateBuilder<SetCareSensitivity<S>>where
S::CareSensitivity: IsUnset,
pub fn care_sensitivity(
self,
value: CareSensitivity,
) -> CandidateBuilder<SetCareSensitivity<S>>where
S::CareSensitivity: IsUnset,
Required.
Care-safety state that can require medical-document or manager review before use.
Sourcepub fn inventory(self, value: Availability) -> CandidateBuilder<SetInventory<S>>where
S::Inventory: IsUnset,
pub fn inventory(self, value: Availability) -> CandidateBuilder<SetInventory<S>>where
S::Inventory: IsUnset,
Required.
Availability state that suppresses candidates when stock cannot support the recommendation.
Sourcepub fn customer_preference(
self,
value: Preference,
) -> CandidateBuilder<SetCustomerPreference<S>>where
S::CustomerPreference: IsUnset,
pub fn customer_preference(
self,
value: Preference,
) -> CandidateBuilder<SetCustomerPreference<S>>where
S::CustomerPreference: IsUnset,
Required.
Preference or opt-out state that prevents unwanted recommendation drafts.