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