#[non_exhaustive]pub struct VulnerablePackageBuilder { /* private fields */ }
Expand description
A builder for VulnerablePackage
.
Implementations§
source§impl VulnerablePackageBuilder
impl VulnerablePackageBuilder
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the vulnerable package.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the vulnerable package.
sourcepub fn source_layer_hash(self, input: impl Into<String>) -> Self
pub fn source_layer_hash(self, input: impl Into<String>) -> Self
The source layer hash of the vulnerable package.
sourcepub fn set_source_layer_hash(self, input: Option<String>) -> Self
pub fn set_source_layer_hash(self, input: Option<String>) -> Self
The source layer hash of the vulnerable package.
sourcepub fn get_source_layer_hash(&self) -> &Option<String>
pub fn get_source_layer_hash(&self) -> &Option<String>
The source layer hash of the vulnerable package.
sourcepub fn set_release(self, input: Option<String>) -> Self
pub fn set_release(self, input: Option<String>) -> Self
The release of the vulnerable package.
sourcepub fn get_release(&self) -> &Option<String>
pub fn get_release(&self) -> &Option<String>
The release of the vulnerable package.
sourcepub fn arch(self, input: impl Into<String>) -> Self
pub fn arch(self, input: impl Into<String>) -> Self
The architecture of the vulnerable package.
sourcepub fn set_arch(self, input: Option<String>) -> Self
pub fn set_arch(self, input: Option<String>) -> Self
The architecture of the vulnerable package.
sourcepub fn package_manager(self, input: impl Into<String>) -> Self
pub fn package_manager(self, input: impl Into<String>) -> Self
The package manager of the vulnerable package.
sourcepub fn set_package_manager(self, input: Option<String>) -> Self
pub fn set_package_manager(self, input: Option<String>) -> Self
The package manager of the vulnerable package.
sourcepub fn get_package_manager(&self) -> &Option<String>
pub fn get_package_manager(&self) -> &Option<String>
The package manager of the vulnerable package.
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
The file path of the vulnerable package.
sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
The file path of the vulnerable package.
sourcepub fn get_file_path(&self) -> &Option<String>
pub fn get_file_path(&self) -> &Option<String>
The file path of the vulnerable package.
sourcepub fn fixed_in_version(self, input: impl Into<String>) -> Self
pub fn fixed_in_version(self, input: impl Into<String>) -> Self
The version of the package that contains the vulnerability fix.
sourcepub fn set_fixed_in_version(self, input: Option<String>) -> Self
pub fn set_fixed_in_version(self, input: Option<String>) -> Self
The version of the package that contains the vulnerability fix.
sourcepub fn get_fixed_in_version(&self) -> &Option<String>
pub fn get_fixed_in_version(&self) -> &Option<String>
The version of the package that contains the vulnerability fix.
sourcepub fn remediation(self, input: impl Into<String>) -> Self
pub fn remediation(self, input: impl Into<String>) -> Self
The code to run in your environment to update packages with a fix available.
sourcepub fn set_remediation(self, input: Option<String>) -> Self
pub fn set_remediation(self, input: Option<String>) -> Self
The code to run in your environment to update packages with a fix available.
sourcepub fn get_remediation(&self) -> &Option<String>
pub fn get_remediation(&self) -> &Option<String>
The code to run in your environment to update packages with a fix available.
sourcepub fn build(self) -> VulnerablePackage
pub fn build(self) -> VulnerablePackage
Consumes the builder and constructs a VulnerablePackage
.
Trait Implementations§
source§impl Clone for VulnerablePackageBuilder
impl Clone for VulnerablePackageBuilder
source§fn clone(&self) -> VulnerablePackageBuilder
fn clone(&self) -> VulnerablePackageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VulnerablePackageBuilder
impl Debug for VulnerablePackageBuilder
source§impl Default for VulnerablePackageBuilder
impl Default for VulnerablePackageBuilder
source§fn default() -> VulnerablePackageBuilder
fn default() -> VulnerablePackageBuilder
source§impl PartialEq for VulnerablePackageBuilder
impl PartialEq for VulnerablePackageBuilder
source§fn eq(&self, other: &VulnerablePackageBuilder) -> bool
fn eq(&self, other: &VulnerablePackageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VulnerablePackageBuilder
Auto Trait Implementations§
impl Freeze for VulnerablePackageBuilder
impl RefUnwindSafe for VulnerablePackageBuilder
impl Send for VulnerablePackageBuilder
impl Sync for VulnerablePackageBuilder
impl Unpin for VulnerablePackageBuilder
impl UnwindSafe for VulnerablePackageBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more