pub struct DemotionDecision {
pub demotion_id: String,
pub asset_id: String,
pub prior_state: ConfidenceState,
pub new_state: ConfidenceState,
pub reason_code: ConfidenceDemotionReasonCode,
pub replay_eligibility: ReplayEligibility,
pub summary: String,
pub quarantine_transition: bool,
pub fail_closed: bool,
}Expand description
Demotion or quarantine transition event.
Fields§
§demotion_id: StringUnique identifier for this demotion event.
asset_id: StringThe asset being demoted or quarantined.
prior_state: ConfidenceStatePrior state before this transition.
new_state: ConfidenceStateNew state after this transition.
reason_code: ConfidenceDemotionReasonCodeReason for the demotion.
replay_eligibility: ReplayEligibilityReplay eligibility after this transition.
summary: StringHuman-readable summary.
quarantine_transition: boolWhether this demotion resulted in a quarantine transition.
fail_closed: boolSafety gate. Always true for any demotion event.
Trait Implementations§
Source§impl Clone for DemotionDecision
impl Clone for DemotionDecision
Source§fn clone(&self) -> DemotionDecision
fn clone(&self) -> DemotionDecision
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 DemotionDecision
impl Debug for DemotionDecision
Source§impl<'de> Deserialize<'de> for DemotionDecision
impl<'de> Deserialize<'de> for DemotionDecision
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 DemotionDecision
impl PartialEq for DemotionDecision
Source§impl Serialize for DemotionDecision
impl Serialize for DemotionDecision
impl Eq for DemotionDecision
impl StructuralPartialEq for DemotionDecision
Auto Trait Implementations§
impl Freeze for DemotionDecision
impl RefUnwindSafe for DemotionDecision
impl Send for DemotionDecision
impl Sync for DemotionDecision
impl Unpin for DemotionDecision
impl UnsafeUnpin for DemotionDecision
impl UnwindSafe for DemotionDecision
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