Struct aws_sdk_securityhub::types::builders::CvssBuilder
source · #[non_exhaustive]pub struct CvssBuilder { /* private fields */ }
Expand description
A builder for Cvss
.
Implementations§
source§impl CvssBuilder
impl CvssBuilder
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of CVSS for the CVSS score.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of CVSS for the CVSS score.
sourcepub fn base_score(self, input: f64) -> Self
pub fn base_score(self, input: f64) -> Self
The base CVSS score.
sourcepub fn set_base_score(self, input: Option<f64>) -> Self
pub fn set_base_score(self, input: Option<f64>) -> Self
The base CVSS score.
sourcepub fn get_base_score(&self) -> &Option<f64>
pub fn get_base_score(&self) -> &Option<f64>
The base CVSS score.
sourcepub fn base_vector(self, input: impl Into<String>) -> Self
pub fn base_vector(self, input: impl Into<String>) -> Self
The base scoring vector for the CVSS score.
sourcepub fn set_base_vector(self, input: Option<String>) -> Self
pub fn set_base_vector(self, input: Option<String>) -> Self
The base scoring vector for the CVSS score.
sourcepub fn get_base_vector(&self) -> &Option<String>
pub fn get_base_vector(&self) -> &Option<String>
The base scoring vector for the CVSS score.
sourcepub fn source(self, input: impl Into<String>) -> Self
pub fn source(self, input: impl Into<String>) -> Self
The origin of the original CVSS score and vector.
sourcepub fn set_source(self, input: Option<String>) -> Self
pub fn set_source(self, input: Option<String>) -> Self
The origin of the original CVSS score and vector.
sourcepub fn get_source(&self) -> &Option<String>
pub fn get_source(&self) -> &Option<String>
The origin of the original CVSS score and vector.
sourcepub fn adjustments(self, input: Adjustment) -> Self
pub fn adjustments(self, input: Adjustment) -> Self
Appends an item to adjustments
.
To override the contents of this collection use set_adjustments
.
Adjustments to the CVSS metrics.
sourcepub fn set_adjustments(self, input: Option<Vec<Adjustment>>) -> Self
pub fn set_adjustments(self, input: Option<Vec<Adjustment>>) -> Self
Adjustments to the CVSS metrics.
sourcepub fn get_adjustments(&self) -> &Option<Vec<Adjustment>>
pub fn get_adjustments(&self) -> &Option<Vec<Adjustment>>
Adjustments to the CVSS metrics.
Trait Implementations§
source§impl Clone for CvssBuilder
impl Clone for CvssBuilder
source§fn clone(&self) -> CvssBuilder
fn clone(&self) -> CvssBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CvssBuilder
impl Debug for CvssBuilder
source§impl Default for CvssBuilder
impl Default for CvssBuilder
source§fn default() -> CvssBuilder
fn default() -> CvssBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CvssBuilder
impl PartialEq for CvssBuilder
source§fn eq(&self, other: &CvssBuilder) -> bool
fn eq(&self, other: &CvssBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CvssBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CvssBuilder
impl Send for CvssBuilder
impl Sync for CvssBuilder
impl Unpin for CvssBuilder
impl UnwindSafe for CvssBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.