Enum npm_parser::audit::Vulnerability
source · [−]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: u64numeric id, not sure what it means
name: Stringthe name of the vulnerability, or if none exists the vulnerable package
dependency: Stringthe name of the dependency which is vulnerable
title: Stringthe human readable title of the vulnerability
url: Stringan URL explaining the vulnerability
severity: Severitythe severity of this vulnerability
range: Stringthe affected version range
and some contain full details
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Vulnerability
impl Send for Vulnerability
impl Sync for Vulnerability
impl Unpin for Vulnerability
impl UnwindSafe for Vulnerability
Blanket Implementations
Mutably borrows from an owned value. Read more
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