#[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 for FindingMetricsValuePerSeverity
impl PartialEq 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 ==
.impl StructuralPartialEq for FindingMetricsValuePerSeverity
Auto Trait Implementations§
impl Freeze for FindingMetricsValuePerSeverity
impl RefUnwindSafe for FindingMetricsValuePerSeverity
impl Send for FindingMetricsValuePerSeverity
impl Sync for FindingMetricsValuePerSeverity
impl Unpin for FindingMetricsValuePerSeverity
impl UnwindSafe for FindingMetricsValuePerSeverity
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