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
sourceimpl Debug for Vulnerability
impl Debug for Vulnerability
sourceimpl<'de> Deserialize<'de> for Vulnerability
impl<'de> Deserialize<'de> for Vulnerability
sourcefn 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
sourceimpl Serialize for Vulnerability
impl Serialize for Vulnerability
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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