#[non_exhaustive]
pub struct PackageVulnerabilityDetails { pub cvss: Option<Vec<CvssScore>>, pub reference_urls: Option<Vec<String>>, pub related_vulnerabilities: Option<Vec<String>>, pub source: Option<String>, pub source_url: Option<String>, pub vendor_created_at: Option<DateTime>, pub vendor_severity: Option<String>, pub vendor_updated_at: Option<DateTime>, pub vulnerability_id: Option<String>, pub vulnerable_packages: Option<Vec<VulnerablePackage>>, }
Expand description

Information about a package vulnerability finding.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
cvss: Option<Vec<CvssScore>>

An object that contains details about the CVSS score of a finding.

reference_urls: Option<Vec<String>>

One or more URLs that contain details about this vulnerability type.

related_vulnerabilities: Option<Vec<String>>

One or more vulnerabilities related to the one identified in this finding.

source: Option<String>

The source of the vulnerability information.

source_url: Option<String>

A URL to the source of the vulnerability information.

vendor_created_at: Option<DateTime>

The date and time that this vulnerability was first added to the vendor's database.

vendor_severity: Option<String>

The severity the vendor has given to this vulnerability type.

vendor_updated_at: Option<DateTime>

The date and time the vendor last updated this vulnerability in their database.

vulnerability_id: Option<String>

The ID given to this vulnerability.

vulnerable_packages: Option<Vec<VulnerablePackage>>

The packages impacted by this vulnerability.

Implementations

An object that contains details about the CVSS score of a finding.

One or more URLs that contain details about this vulnerability type.

One or more vulnerabilities related to the one identified in this finding.

The source of the vulnerability information.

A URL to the source of the vulnerability information.

The date and time that this vulnerability was first added to the vendor's database.

The severity the vendor has given to this vulnerability type.

The date and time the vendor last updated this vulnerability in their database.

The ID given to this vulnerability.

The packages impacted by this vulnerability.

Creates a new builder-style object to manufacture PackageVulnerabilityDetails.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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