#[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 ==
.