#[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
The finding is related to quality or readability improvements and not considered actionable.
sourcepub fn set_info(self, input: Option<f64>) -> Self
pub fn set_info(self, input: Option<f64>) -> Self
The finding is related to quality or readability improvements and not considered actionable.
sourcepub fn get_info(&self) -> &Option<f64>
pub fn get_info(&self) -> &Option<f64>
The finding is related to quality or readability improvements and not considered actionable.
sourcepub fn low(self, input: f64) -> Self
pub fn low(self, input: f64) -> Self
The severity of the finding is low and does require action on its own.
sourcepub fn set_low(self, input: Option<f64>) -> Self
pub fn set_low(self, input: Option<f64>) -> Self
The severity of the finding is low and does require action on its own.
sourcepub fn get_low(&self) -> &Option<f64>
pub fn get_low(&self) -> &Option<f64>
The severity of the finding is low and does require action on its own.
sourcepub fn medium(self, input: f64) -> Self
pub fn medium(self, input: f64) -> Self
The severity of the finding is medium and should be addressed as a mid-term priority.
sourcepub fn set_medium(self, input: Option<f64>) -> Self
pub fn set_medium(self, input: Option<f64>) -> Self
The severity of the finding is medium and should be addressed as a mid-term priority.
sourcepub fn get_medium(&self) -> &Option<f64>
pub fn get_medium(&self) -> &Option<f64>
The severity of the finding is medium and should be addressed as a mid-term priority.
sourcepub fn high(self, input: f64) -> Self
pub fn high(self, input: f64) -> Self
The severity of the finding is high and should be addressed as a near-term priority.
sourcepub fn set_high(self, input: Option<f64>) -> Self
pub fn set_high(self, input: Option<f64>) -> Self
The severity of the finding is high and should be addressed as a near-term priority.
sourcepub fn get_high(&self) -> &Option<f64>
pub fn get_high(&self) -> &Option<f64>
The severity of the finding is high and should be addressed as a near-term priority.
sourcepub fn critical(self, input: f64) -> Self
pub fn critical(self, input: f64) -> Self
The severity of the finding is critical and should be addressed immediately.
sourcepub fn set_critical(self, input: Option<f64>) -> Self
pub fn set_critical(self, input: Option<f64>) -> Self
The severity of the finding is critical and should be addressed immediately.
sourcepub fn get_critical(&self) -> &Option<f64>
pub fn get_critical(&self) -> &Option<f64>
The severity of the finding is critical and should be addressed immediately.
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> 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