#[non_exhaustive]pub struct FindingMetricsValuePerSeverity {
pub info: Option<f64>,
pub low: Option<f64>,
pub medium: Option<f64>,
pub high: Option<f64>,
pub critical: Option<f64>,
}
Expand description
The severity of the issue in the code that generated a finding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.info: Option<f64>
The finding is related to quality or readability improvements and not considered actionable.
low: Option<f64>
The severity of the finding is low and does require action on its own.
medium: Option<f64>
The severity of the finding is medium and should be addressed as a mid-term priority.
high: Option<f64>
The severity of the finding is high and should be addressed as a near-term priority.
critical: Option<f64>
The severity of the finding is critical and should be addressed immediately.
Implementations§
source§impl FindingMetricsValuePerSeverity
impl FindingMetricsValuePerSeverity
sourcepub fn info(&self) -> Option<f64>
pub fn info(&self) -> Option<f64>
The finding is related to quality or readability improvements and not considered actionable.
sourcepub fn low(&self) -> Option<f64>
pub fn low(&self) -> Option<f64>
The severity of the finding is low and does require action on its own.
sourcepub fn medium(&self) -> Option<f64>
pub fn medium(&self) -> Option<f64>
The severity of the finding is medium and should be addressed as a mid-term priority.
source§impl FindingMetricsValuePerSeverity
impl FindingMetricsValuePerSeverity
sourcepub fn builder() -> FindingMetricsValuePerSeverityBuilder
pub fn builder() -> FindingMetricsValuePerSeverityBuilder
Creates a new builder-style object to manufacture FindingMetricsValuePerSeverity
.
Trait Implementations§
source§impl Clone for FindingMetricsValuePerSeverity
impl Clone for FindingMetricsValuePerSeverity
source§fn clone(&self) -> FindingMetricsValuePerSeverity
fn clone(&self) -> FindingMetricsValuePerSeverity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<FindingMetricsValuePerSeverity> for FindingMetricsValuePerSeverity
impl PartialEq<FindingMetricsValuePerSeverity> for FindingMetricsValuePerSeverity
source§fn eq(&self, other: &FindingMetricsValuePerSeverity) -> bool
fn eq(&self, other: &FindingMetricsValuePerSeverity) -> bool
self
and other
values to be equal, and is used
by ==
.