#[non_exhaustive]
pub struct PackageVulnerabilityDetailsBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl PackageVulnerabilityDetailsBuilder

source

pub fn vulnerability_id(self, input: impl Into<String>) -> Self

A unique identifier for this vulnerability.

This field is required.
source

pub fn set_vulnerability_id(self, input: Option<String>) -> Self

A unique identifier for this vulnerability.

source

pub fn get_vulnerability_id(&self) -> &Option<String>

A unique identifier for this vulnerability.

source

pub fn vulnerable_packages(self, input: VulnerablePackage) -> Self

Appends an item to vulnerable_packages.

To override the contents of this collection use set_vulnerable_packages.

The packages that this vulnerability impacts.

source

pub fn set_vulnerable_packages( self, input: Option<Vec<VulnerablePackage>> ) -> Self

The packages that this vulnerability impacts.

source

pub fn get_vulnerable_packages(&self) -> &Option<Vec<VulnerablePackage>>

The packages that this vulnerability impacts.

source

pub fn source(self, input: impl Into<String>) -> Self

The source of the vulnerability information.

source

pub fn set_source(self, input: Option<String>) -> Self

The source of the vulnerability information.

source

pub fn get_source(&self) -> &Option<String>

The source of the vulnerability information.

source

pub fn cvss(self, input: CvssScore) -> Self

Appends an item to cvss.

To override the contents of this collection use set_cvss.

CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.

source

pub fn set_cvss(self, input: Option<Vec<CvssScore>>) -> Self

CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.

source

pub fn get_cvss(&self) -> &Option<Vec<CvssScore>>

CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.

source

pub fn related_vulnerabilities(self, input: impl Into<String>) -> Self

Appends an item to related_vulnerabilities.

To override the contents of this collection use set_related_vulnerabilities.

Vulnerabilities that are often related to the findings for the package.

Vulnerabilities that are often related to the findings for the package.

Vulnerabilities that are often related to the findings for the package.

source

pub fn source_url(self, input: impl Into<String>) -> Self

A link to the source of the vulnerability information.

source

pub fn set_source_url(self, input: Option<String>) -> Self

A link to the source of the vulnerability information.

source

pub fn get_source_url(&self) -> &Option<String>

A link to the source of the vulnerability information.

source

pub fn vendor_severity(self, input: impl Into<String>) -> Self

The severity that the vendor assigned to this vulnerability type.

source

pub fn set_vendor_severity(self, input: Option<String>) -> Self

The severity that the vendor assigned to this vulnerability type.

source

pub fn get_vendor_severity(&self) -> &Option<String>

The severity that the vendor assigned to this vulnerability type.

source

pub fn vendor_created_at(self, input: DateTime) -> Self

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

source

pub fn set_vendor_created_at(self, input: Option<DateTime>) -> Self

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

source

pub fn get_vendor_created_at(&self) -> &Option<DateTime>

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

source

pub fn vendor_updated_at(self, input: DateTime) -> Self

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

source

pub fn set_vendor_updated_at(self, input: Option<DateTime>) -> Self

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

source

pub fn get_vendor_updated_at(&self) -> &Option<DateTime>

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

source

pub fn reference_urls(self, input: impl Into<String>) -> Self

Appends an item to reference_urls.

To override the contents of this collection use set_reference_urls.

Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.

source

pub fn set_reference_urls(self, input: Option<Vec<String>>) -> Self

Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.

source

pub fn get_reference_urls(&self) -> &Option<Vec<String>>

Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.

source

pub fn build(self) -> Result<PackageVulnerabilityDetails, BuildError>

Consumes the builder and constructs a PackageVulnerabilityDetails. This method will fail if any of the following fields are not set:

Trait Implementations§

source§

impl Clone for PackageVulnerabilityDetailsBuilder

source§

fn clone(&self) -> PackageVulnerabilityDetailsBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PackageVulnerabilityDetailsBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PackageVulnerabilityDetailsBuilder

source§

fn default() -> PackageVulnerabilityDetailsBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for PackageVulnerabilityDetailsBuilder

source§

fn eq(&self, other: &PackageVulnerabilityDetailsBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for PackageVulnerabilityDetailsBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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