#[non_exhaustive]pub struct FindingMetricsValuePerSeverityBuilder { /* private fields */ }
Expand description
A builder for FindingMetricsValuePerSeverity
.
Implementations§
source§impl FindingMetricsValuePerSeverityBuilder
impl FindingMetricsValuePerSeverityBuilder
sourcepub fn info(self, input: f64) -> Self
pub fn info(self, input: f64) -> Self
A numeric value corresponding to an informational finding.
sourcepub fn set_info(self, input: Option<f64>) -> Self
pub fn set_info(self, input: Option<f64>) -> Self
A numeric value corresponding to an informational finding.
sourcepub fn get_info(&self) -> &Option<f64>
pub fn get_info(&self) -> &Option<f64>
A numeric value corresponding to an informational finding.
sourcepub fn set_low(self, input: Option<f64>) -> Self
pub fn set_low(self, input: Option<f64>) -> Self
A numeric value corresponding to a low severity finding.
sourcepub fn medium(self, input: f64) -> Self
pub fn medium(self, input: f64) -> Self
A numeric value corresponding to a medium severity finding.
sourcepub fn set_medium(self, input: Option<f64>) -> Self
pub fn set_medium(self, input: Option<f64>) -> Self
A numeric value corresponding to a medium severity finding.
sourcepub fn get_medium(&self) -> &Option<f64>
pub fn get_medium(&self) -> &Option<f64>
A numeric value corresponding to a medium severity finding.
sourcepub fn high(self, input: f64) -> Self
pub fn high(self, input: f64) -> Self
A numeric value corresponding to a high severity finding.
sourcepub fn set_high(self, input: Option<f64>) -> Self
pub fn set_high(self, input: Option<f64>) -> Self
A numeric value corresponding to a high severity finding.
sourcepub fn get_high(&self) -> &Option<f64>
pub fn get_high(&self) -> &Option<f64>
A numeric value corresponding to a high severity finding.
sourcepub fn set_critical(self, input: Option<f64>) -> Self
pub fn set_critical(self, input: Option<f64>) -> Self
A numeric value corresponding to a critical finding.
sourcepub fn get_critical(&self) -> &Option<f64>
pub fn get_critical(&self) -> &Option<f64>
A numeric value corresponding to a critical finding.
sourcepub fn build(self) -> FindingMetricsValuePerSeverity
pub fn build(self) -> FindingMetricsValuePerSeverity
Consumes the builder and constructs a FindingMetricsValuePerSeverity
.
Trait Implementations§
source§impl Clone for FindingMetricsValuePerSeverityBuilder
impl Clone for FindingMetricsValuePerSeverityBuilder
source§fn clone(&self) -> FindingMetricsValuePerSeverityBuilder
fn clone(&self) -> FindingMetricsValuePerSeverityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for FindingMetricsValuePerSeverityBuilder
impl Default for FindingMetricsValuePerSeverityBuilder
source§fn default() -> FindingMetricsValuePerSeverityBuilder
fn default() -> FindingMetricsValuePerSeverityBuilder
source§impl PartialEq for FindingMetricsValuePerSeverityBuilder
impl PartialEq for FindingMetricsValuePerSeverityBuilder
source§fn eq(&self, other: &FindingMetricsValuePerSeverityBuilder) -> bool
fn eq(&self, other: &FindingMetricsValuePerSeverityBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FindingMetricsValuePerSeverityBuilder
Auto Trait Implementations§
impl Freeze for FindingMetricsValuePerSeverityBuilder
impl RefUnwindSafe for FindingMetricsValuePerSeverityBuilder
impl Send for FindingMetricsValuePerSeverityBuilder
impl Sync for FindingMetricsValuePerSeverityBuilder
impl Unpin for FindingMetricsValuePerSeverityBuilder
impl UnwindSafe for FindingMetricsValuePerSeverityBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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