Struct rustsec::advisory::Advisory [−][src]
pub struct Advisory {
pub metadata: Metadata,
pub affected: Option<Affected>,
pub versions: Versions,
}
Expand description
RustSec Security Advisories
Fields
metadata: Metadata
The [advisory]
section of a RustSec advisory
affected: Option<Affected>
The (optional) [affected]
section of a RustSec advisory
versions: Versions
Versions related to this advisory which are patched or unaffected.
Implementations
Load an advisory from a RUSTSEC-20XX-NNNN.toml
file
Get advisory description
Get the severity of this advisory if it has a CVSS v3 associated
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 Advisory
impl UnwindSafe for Advisory
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more