pub struct Advisory {
Show 21 fields pub id: u64, pub title: String, pub findings: Vec<Finding>, pub vulnerable_versions: Option<String>, pub module_name: Option<String>, pub severity: Severity, pub github_advisory_id: Option<String>, pub cves: Option<Vec<String>>, pub access: String, pub patched_versions: Option<String>, pub recommendation: String, pub cwe: Option<String>, pub found_by: Option<String>, pub reported_by: Option<String>, pub created: OffsetDateTime, pub updated: Option<OffsetDateTime>, pub deleted: Option<OffsetDateTime>, pub references: Option<String>, pub npm_advisory_id: Option<String>, pub overview: String, pub url: String,
}
Expand description

advisory in report version 1

there is a field metadata in the output here but since I could not find information on its structure it is not parsed (was always null for me)

Fields

id: u64

numeric id

title: String

human readable title

findings: Vec<Finding>

where was the module affected by this advisory found in the dependency tree

vulnerable_versions: Option<String>

which versions of the affected module are vulnerable

module_name: Option<String>

name of the affected node module

severity: Severity

how severe is the issue

github_advisory_id: Option<String>

GitHub advisory Id

cves: Option<Vec<String>>

CVE numbers

access: String

if this advisory is public

patched_versions: Option<String>

which versions of the affected package are patched

recommendation: String

a human readable recommendation on how to fix this

cwe: Option<String>

a CWE (common weakness enumeration) identifier

found_by: Option<String>

who found this security issue

reported_by: Option<String>

who reported this security issue

created: OffsetDateTime

when was this advisory created

updated: Option<OffsetDateTime>

when was this advisory last updated

deleted: Option<OffsetDateTime>

when was this deleted

references: Option<String>

external references, all in one String, with newlines

npm_advisory_id: Option<String>

npm advisory id

overview: String

human-readable description

url: String

URL to learn more

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more