[][src]Enum rustsec::advisory::Severity

pub enum Severity {
    None,
    Low,
    Medium,
    High,
    Critical,
}

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

Methods

impl Severity[src]

pub fn as_str(self) -> &'static str[src]

Get a str describing the severity level

Trait Implementations

impl FromStr for Severity[src]

type Err = Error

The associated error which can be returned from parsing.

impl Clone for Severity[src]

impl PartialOrd<Severity> for Severity[src]

impl Ord for Severity[src]

impl Eq for Severity[src]

impl Serialize for Severity[src]

impl From<Score> for Severity[src]

impl Debug for Severity[src]

impl Display for Severity[src]

impl Copy for Severity[src]

impl<'de> Deserialize<'de> for Severity[src]

impl PartialEq<Severity> for Severity[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]