pub enum Eligibility {
Eligible,
Suppressed {
reason: SuppressionReason,
},
NeedsStaffReview {
gate: ReviewGate,
reason: ReviewReason,
},
}Expand description
Safety and review status for presenting a boarding upsell recommendation.
Variants§
Eligible
Source care evidence shows no safety ambiguity, so staff may review the offer normally.
Suppressed
Recommendation should not be shown because context makes the offer inappropriate.
Fields
§
reason: SuppressionReasonReason this recommendation is suppressed or must be reviewed before use.
NeedsStaffReview
Care, behavior, or capacity evidence requires staff review before the offer is used.
Fields
§
gate: ReviewGateReview gate staff must clear before presenting this recommendation.
§
reason: ReviewReasonReason this recommendation is suppressed or must be reviewed before use.
Trait Implementations§
Source§impl Clone for Eligibility
impl Clone for Eligibility
Source§fn clone(&self) -> Eligibility
fn clone(&self) -> Eligibility
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 Eligibility
impl Debug for Eligibility
Source§impl<'de> Deserialize<'de> for Eligibility
impl<'de> Deserialize<'de> for Eligibility
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 Eligibility
impl PartialEq for Eligibility
Source§impl Serialize for Eligibility
impl Serialize for Eligibility
impl Eq for Eligibility
impl StructuralPartialEq for Eligibility
Auto Trait Implementations§
impl Freeze for Eligibility
impl RefUnwindSafe for Eligibility
impl Send for Eligibility
impl Sync for Eligibility
impl Unpin for Eligibility
impl UnsafeUnpin for Eligibility
impl UnwindSafe for Eligibility
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