pub struct AlertDecision {
pub is_alert: bool,
pub evidence: AlertEvidence,
pub observations_since_alert: u64,
}Expand description
Decision returned after observing a new value.
Fields§
§is_alert: boolWhether to trigger an alert.
evidence: AlertEvidenceFull evidence for this observation.
observations_since_alert: u64Observations since last alert.
Implementations§
Source§impl AlertDecision
impl AlertDecision
Sourcepub fn evidence_summary(&self) -> String
pub fn evidence_summary(&self) -> String
Summary string for the decision.
Trait Implementations§
Source§impl Clone for AlertDecision
impl Clone for AlertDecision
Source§fn clone(&self) -> AlertDecision
fn clone(&self) -> AlertDecision
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 moreAuto Trait Implementations§
impl Freeze for AlertDecision
impl RefUnwindSafe for AlertDecision
impl Send for AlertDecision
impl Sync for AlertDecision
impl Unpin for AlertDecision
impl UnsafeUnpin for AlertDecision
impl UnwindSafe for AlertDecision
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