pub enum TrendSeverity {
Clean,
Suspected,
Confirmed,
}Expand description
Coarse trend severity band.
Mirrors IntegrityRiskClassification but uses a stable
telemetry label set so a future T84 aggregator can branch on
the band without importing the integrity_canary module. The
labels are deliberately ASCII-lowercase with underscores (no
snake_case rename needed — the serde tag handles it).
Variants§
Clean
Score below the suspected threshold — no trend signal.
Suspected
Score at or above the suspected threshold but below the confirmed threshold — soft signal, watch the next runs.
Confirmed
Score at or above the confirmed threshold — hard signal, refresh the session.
Implementations§
Source§impl TrendSeverity
impl TrendSeverity
Sourcepub const fn from_score(score: &IntegrityRiskScore) -> Self
pub const fn from_score(score: &IntegrityRiskScore) -> Self
Resolve the trend severity for a IntegrityRiskScore.
Trait Implementations§
Source§impl Clone for TrendSeverity
impl Clone for TrendSeverity
Source§fn clone(&self) -> TrendSeverity
fn clone(&self) -> TrendSeverity
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 TrendSeverity
impl Debug for TrendSeverity
Source§impl<'de> Deserialize<'de> for TrendSeverity
impl<'de> Deserialize<'de> for TrendSeverity
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 Display for TrendSeverity
impl Display for TrendSeverity
Source§impl Hash for TrendSeverity
impl Hash for TrendSeverity
Source§impl PartialEq for TrendSeverity
impl PartialEq for TrendSeverity
Source§impl Serialize for TrendSeverity
impl Serialize for TrendSeverity
impl Copy for TrendSeverity
impl Eq for TrendSeverity
impl StructuralPartialEq for TrendSeverity
Auto Trait Implementations§
impl Freeze for TrendSeverity
impl RefUnwindSafe for TrendSeverity
impl Send for TrendSeverity
impl Sync for TrendSeverity
impl Unpin for TrendSeverity
impl UnsafeUnpin for TrendSeverity
impl UnwindSafe for TrendSeverity
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.