pub enum ContextReasonCodeV1 {
Relevant,
Required,
CacheHit,
BudgetExceeded,
LowerUtility,
PolicyExcluded,
DeferredForLater,
Other,
}Expand description
Stable, machine-readable reason for a context selection decision.
Variants§
Trait Implementations§
Source§impl Clone for ContextReasonCodeV1
impl Clone for ContextReasonCodeV1
impl Copy for ContextReasonCodeV1
Source§impl Debug for ContextReasonCodeV1
impl Debug for ContextReasonCodeV1
Source§impl<'de> Deserialize<'de> for ContextReasonCodeV1
impl<'de> Deserialize<'de> for ContextReasonCodeV1
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
impl Eq for ContextReasonCodeV1
Source§impl Ord for ContextReasonCodeV1
impl Ord for ContextReasonCodeV1
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContextReasonCodeV1
impl PartialEq for ContextReasonCodeV1
Source§impl PartialOrd for ContextReasonCodeV1
impl PartialOrd for ContextReasonCodeV1
Source§impl Serialize for ContextReasonCodeV1
impl Serialize for ContextReasonCodeV1
impl StructuralPartialEq for ContextReasonCodeV1
Auto Trait Implementations§
impl Forget for ContextReasonCodeV1
impl Freeze for ContextReasonCodeV1
impl Move for ContextReasonCodeV1
impl RefUnwindSafe for ContextReasonCodeV1
impl Send for ContextReasonCodeV1
impl Sync for ContextReasonCodeV1
impl Unpin for ContextReasonCodeV1
impl UnsafeUnpin for ContextReasonCodeV1
impl UnwindSafe for ContextReasonCodeV1
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