pub struct SeverityChange {
pub finding: Finding,
pub before_severity: Severity,
pub after_severity: Severity,
}Expand description
A finding whose worst severity changed between the two runs.
Fields§
§finding: FindingThe “after” version of the finding (same identity, latest data).
before_severity: Severity§after_severity: SeverityImplementations§
Source§impl SeverityChange
impl SeverityChange
Sourcepub fn is_regression(&self) -> bool
pub fn is_regression(&self) -> bool
true when the after severity is worse than the before severity.
Used to sort regressions ahead of improvements in the output and
reused by the CLI text renderer to color regressions red.
Severity derives Ord with declaration order (Critical < Warning
< Info). “Worse” means numerically lower.
Trait Implementations§
Source§impl Clone for SeverityChange
impl Clone for SeverityChange
Source§fn clone(&self) -> SeverityChange
fn clone(&self) -> SeverityChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SeverityChange
impl Debug for SeverityChange
Auto Trait Implementations§
impl Freeze for SeverityChange
impl RefUnwindSafe for SeverityChange
impl Send for SeverityChange
impl Sync for SeverityChange
impl Unpin for SeverityChange
impl UnsafeUnpin for SeverityChange
impl UnwindSafe for SeverityChange
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request