pub enum Severity {
None,
Low,
Medium,
High,
Critical,
}Expand description
Qualitative Severity Rating Scale
Described in CVSS v3.1 Specification: Section 5: https://www.first.org/cvss/v3.1/specification-document#Qualitative-Severity-Rating-Scale
And in CVSS v4.0 Specification: Section 6: https://www.first.org/cvss/v4.0/specification-document#Qualitative-Severity-Rating-Scale
The rating scales in v3 and v4 are the same.
For some purposes it is useful to have a textual representation of the scores.
Variants§
None
None: CVSS Score 0.0
Low
Low: CVSS Score 0.1 - 3.9
Medium
Medium: CVSS Score 4.0 - 6.9
High
High: CVSS Score 7.0 - 8.9
Critical
Critical: CVSS Score 9.0 - 10.0
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Severity
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Severity
Available on crate feature
serde only.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
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