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: 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
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more