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§
source§impl<'de> Deserialize<'de> for Severity
impl<'de> Deserialize<'de> for Severity
source§fn deserialize<D>(
deserializer: D
) -> Result<Severity, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Severity, <D as Deserializer<'de>>::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 PartialEq<Severity> for Severity
impl PartialEq<Severity> for Severity
source§impl PartialOrd<Severity> for Severity
impl PartialOrd<Severity> for Severity
1.0.0 · source§fn 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 moresource§impl Serialize for Severity
impl Serialize for Severity
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.