pub enum Vulnerability {
    NameOnly(String),
    Full {
        source: u64,
        name: String,
        dependency: String,
        title: String,
        url: String,
        severity: Severity,
        range: String,
    },
}
Expand description

a single vulnerability

Variants

NameOnly(String)

some vulnerabilities in the via list are only a name

Full

Fields

source: u64

numeric id, not sure what it means

name: String

the name of the vulnerability, or if none exists the vulnerable package

dependency: String

the name of the dependency which is vulnerable

title: String

the human readable title of the vulnerability

url: String

an URL explaining the vulnerability

severity: Severity

the severity of this vulnerability

range: String

the affected version range

and some contain full details

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more