pub enum SeveritySource {
AuthorJudgment {
rationale: String,
},
DerivedFromEvidence {
rationale: String,
},
}Expand description
How the rule arrived at its severity rank.
Today every rule reports AuthorJudgment because the diagnoser has no
visibility into per-customer blast radius — it can only see one
transaction at a time. The variant exists so the provenance is explicit
in every rendered prompt and report; a reader cannot mistake a
hand-assigned rank for a measured impact.
DerivedFromEvidence is reserved for a future variant that would
derive severity from evidence values (e.g. RetryAfterSecs > 60
upgrading rate-limit to High, or a sustained ConnectionTimeout count
upgrading to Critical). When that variant gets used, the rendered
label will say “derived from evidence” instead of “author judgment” —
no caller code needs to change.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SeveritySource
impl Clone for SeveritySource
Source§fn clone(&self) -> SeveritySource
fn clone(&self) -> SeveritySource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SeveritySource
impl Debug for SeveritySource
Auto Trait Implementations§
impl Freeze for SeveritySource
impl RefUnwindSafe for SeveritySource
impl Send for SeveritySource
impl Sync for SeveritySource
impl Unpin for SeveritySource
impl UnsafeUnpin for SeveritySource
impl UnwindSafe for SeveritySource
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