[][src]Struct rustsec::advisory::metadata::Metadata

pub struct Metadata {
    pub id: Id,
    pub package: Name,
    pub date: Date,
    pub aliases: Vec<Id>,
    pub references: Vec<Id>,
    pub collection: Option<Collection>,
    pub categories: Vec<Category>,
    pub keywords: Vec<Keyword>,
    pub cvss: Option<Base>,
    pub informational: Option<Informational>,
    pub obsolete: bool,
    pub url: Option<String>,
    pub title: String,
    pub description: String,
    // some fields omitted
}

The [advisory] section of a RustSec security advisory

Fields

id: Id

Security advisory ID (e.g. RUSTSEC-YYYY-NNNN)

package: Name

Name of affected crate

date: Date

Date this advisory was officially issued

aliases: Vec<Id>

Advisory IDs in other databases which point to the same advisory

references: Vec<Id>

Advisory IDs which are related to this advisory (use aliases if it is the same vulnerability syndicated to a different database)

collection: Option<Collection>

Collection this advisory belongs to. This isn't intended to be explicitly specified in the advisory, but rather is auto-populated based on the location

categories: Vec<Category>

RustSec vulnerability categories: one of a fixed list of vulnerability categorizations accepted by the project.

keywords: Vec<Keyword>

Freeform keywords which succinctly describe this vulnerability (e.g. "ssl", "rce", "xss")

cvss: Option<Base>

CVSS v3.1 Base Metrics vector string containing severity information.

Example:

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
informational: Option<Informational>

Informational advisories can be used to warn users about issues affecting a particular crate without failing the build.

obsolete: bool

Is the advisory obsolete? Obsolete advisories will be ignored.

url: Option<String>

URL with an announcement (e.g. blog post, PR, disclosure issue, CVE)

title: String

One-liner description of a vulnerability

description: String

Extended description of a vulnerability

Trait Implementations

impl Clone for Metadata[src]

impl Debug for Metadata[src]

impl<'de> Deserialize<'de> for Metadata[src]

impl Eq for Metadata[src]

impl PartialEq<Metadata> for Metadata[src]

impl Serialize for Metadata[src]

impl StructuralEq for Metadata[src]

impl StructuralPartialEq for Metadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.