pub enum Severity {
Info,
Low,
Medium,
High,
Critical,
}Expand description
Severity level for security findings
Variants§
Info
Informational finding
Low
Low severity
Medium
Medium severity
High
High severity
Critical
Critical severity
Implementations§
Source§impl Severity
impl Severity
Sourcepub fn from_score(score: u8) -> Self
pub fn from_score(score: u8) -> Self
Create from numeric score
Sourcepub fn meets_threshold(&self, threshold: Severity) -> bool
pub fn meets_threshold(&self, threshold: Severity) -> bool
Check if this severity meets or exceeds a threshold
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
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 Ord for Severity
impl Ord for Severity
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
impl Copy for Severity
impl Eq 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 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