pub enum ConfidenceDemotionReasonCode {
ConfidenceDecayThreshold,
RepeatedReplayFailure,
MaxFailureCountExceeded,
ExplicitRevocation,
UnknownFailClosed,
}Expand description
Reason code for a demotion or quarantine transition.
Variants§
ConfidenceDecayThreshold
Asset was demoted because confidence decayed below the demotion threshold.
RepeatedReplayFailure
Asset was demoted due to repeated failed reuse (replay failures).
MaxFailureCountExceeded
Asset was quarantined after surpassing the maximum failure count.
ExplicitRevocation
Asset was revoked by explicit maintainer action.
UnknownFailClosed
Demotion failed with an unmapped state; fail closed.
Trait Implementations§
Source§impl Clone for ConfidenceDemotionReasonCode
impl Clone for ConfidenceDemotionReasonCode
Source§fn clone(&self) -> ConfidenceDemotionReasonCode
fn clone(&self) -> ConfidenceDemotionReasonCode
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 ConfidenceDemotionReasonCode
impl Debug for ConfidenceDemotionReasonCode
Source§impl<'de> Deserialize<'de> for ConfidenceDemotionReasonCode
impl<'de> Deserialize<'de> for ConfidenceDemotionReasonCode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfidenceDemotionReasonCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfidenceDemotionReasonCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConfidenceDemotionReasonCode
impl PartialEq for ConfidenceDemotionReasonCode
Source§fn eq(&self, other: &ConfidenceDemotionReasonCode) -> bool
fn eq(&self, other: &ConfidenceDemotionReasonCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfidenceDemotionReasonCode
impl Serialize for ConfidenceDemotionReasonCode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ConfidenceDemotionReasonCode
impl Eq for ConfidenceDemotionReasonCode
impl StructuralPartialEq for ConfidenceDemotionReasonCode
Auto Trait Implementations§
impl Freeze for ConfidenceDemotionReasonCode
impl RefUnwindSafe for ConfidenceDemotionReasonCode
impl Send for ConfidenceDemotionReasonCode
impl Sync for ConfidenceDemotionReasonCode
impl Unpin for ConfidenceDemotionReasonCode
impl UnsafeUnpin for ConfidenceDemotionReasonCode
impl UnwindSafe for ConfidenceDemotionReasonCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.