pub enum Severity {
Critical,
High,
Medium,
Low,
Info,
Other(String),
}Expand description
The severity an analyzer assigned to a finding.
This is a tool judgement, deliberately kept away from the graph: it is not
the confidence score inferred edges carry, and it must never be read as one.
Known levels have stable tokens; anything else round-trips verbatim through
Severity::Other, so a new analyzer’s vocabulary is not lost.
Variants§
Critical
The analyzer’s highest level.
High
High.
Medium
Medium / moderate.
Low
Low / minor.
Info
Informational — not a defect claim.
Other(String)
Any level not covered above, kept verbatim.
Implementations§
Source§impl Severity
impl Severity
Sourcepub fn from_token(s: &str) -> Self
pub fn from_token(s: &str) -> Self
Parse a severity from its token. Unknown tokens become
Severity::Other, so this is infallible.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Severity
Source§impl Ord for Severity
impl Ord for Severity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.