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/specification-document#t17
For some purposes it is useful to have a textual representation of the numeric Base, Temporal and Environmental 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
sourceimpl<'de> Deserialize<'de> for Severity
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Severity
serde
only.sourcefn 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
sourceimpl Ord for Severity
impl Ord for Severity
sourceimpl PartialOrd<Severity> for Severity
impl PartialOrd<Severity> for Severity
sourcefn partial_cmp(&self, other: &Severity) -> Option<Ordering>
fn partial_cmp(&self, other: &Severity) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Severity
impl Eq for Severity
impl StructuralEq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more