Struct rustsec::Vulnerability
source · [−]pub struct Vulnerability {
pub advisory: Metadata,
pub versions: Versions,
pub affected: Option<Affected>,
pub package: Package,
}
Expand description
A vulnerable package and the associated advisory
Fields
advisory: Metadata
Security advisory for which the package is vulnerable
versions: Versions
Versions impacted by this vulnerability
affected: Option<Affected>
More specific information about what this advisory affects (if available)
package: Package
Vulnerable package
Implementations
sourceimpl Vulnerability
impl Vulnerability
Trait Implementations
sourceimpl Clone for Vulnerability
impl Clone for Vulnerability
sourcefn clone(&self) -> Vulnerability
fn clone(&self) -> Vulnerability
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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 PartialEq<Vulnerability> for Vulnerability
impl PartialEq<Vulnerability> for Vulnerability
sourcefn eq(&self, other: &Vulnerability) -> bool
fn eq(&self, other: &Vulnerability) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Vulnerability) -> bool
fn ne(&self, other: &Vulnerability) -> bool
This method tests for !=
.
sourceimpl Serialize for Vulnerability
impl Serialize for Vulnerability
impl Eq for Vulnerability
impl StructuralEq for Vulnerability
impl StructuralPartialEq 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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.