pub struct Recommendation {
pub reservation_id: Id,
pub pet_id: PetId,
pub opportunity: Opportunity,
pub eligibility: Eligibility,
}Expand description
Staff-reviewable boarding upsell recommendation with source reservation, pet, and eligibility evidence.
Fields§
§reservation_id: IdBoarding reservation the offer would attach to.
pet_id: PetIdPet whose stay evidence drives the upsell recommendation.
opportunity: OpportunityUpsell opportunity identified for this stay.
eligibility: EligibilitySafety and review state controlling whether staff may offer the upsell.
Implementations§
Source§impl Recommendation
impl Recommendation
Sourcepub fn customer_offer_gate(&self) -> Option<ReviewGate>
pub fn customer_offer_gate(&self) -> Option<ReviewGate>
Returns the approval gate required before any recommendation becomes customer-facing.
Trait Implementations§
Source§impl Clone for Recommendation
impl Clone for Recommendation
Source§fn clone(&self) -> Recommendation
fn clone(&self) -> Recommendation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Recommendation
impl Debug for Recommendation
Source§impl<'de> Deserialize<'de> for Recommendation
impl<'de> Deserialize<'de> for Recommendation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Recommendation
impl PartialEq for Recommendation
Source§impl Serialize for Recommendation
impl Serialize for Recommendation
impl Eq for Recommendation
impl StructuralPartialEq for Recommendation
Auto Trait Implementations§
impl Freeze for Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnsafeUnpin for Recommendation
impl UnwindSafe for Recommendation
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