pub struct PerfDeltaAssertionRecord {
pub metric: String,
pub direction: Option<Polarity>,
pub max_regression_pct: Option<f64>,
pub min_abs: Option<f64>,
pub phase: Option<u16>,
}Expand description
Owned, serialized mirror of crate::test_support::PerfDeltaAssertion. The
public declaration type uses &'static str (so it stays const/E0493-safe on
the entry) and therefore cannot Deserialize into an owned value; this
String-backed record is the sidecar carrier the perf-delta compare reads.
pub because it is a field of the pub SidecarResult (constructed
across the workspace, including by the cargo-ktstr binary crate); the
author-facing declaration type is crate::test_support::PerfDeltaAssertion.
Fields§
§metric: StringRegistry metric name this assertion gates (see stats list-metrics).
direction: Option<Polarity>Pinned regression direction, or None to inherit the registry polarity.
max_regression_pct: Option<f64>Relative-regression override (percent), or None for default_rel.
min_abs: Option<f64>Absolute-materiality override, or None for default_abs.
phase: Option<u16>Phase scope (step_index), or None to gate the aggregate value.
Trait Implementations§
Source§impl Clone for PerfDeltaAssertionRecord
impl Clone for PerfDeltaAssertionRecord
Source§fn clone(&self) -> PerfDeltaAssertionRecord
fn clone(&self) -> PerfDeltaAssertionRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PerfDeltaAssertionRecord
impl Debug for PerfDeltaAssertionRecord
Source§impl<'de> Deserialize<'de> for PerfDeltaAssertionRecord
impl<'de> Deserialize<'de> for PerfDeltaAssertionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&PerfDeltaAssertion> for PerfDeltaAssertionRecord
impl From<&PerfDeltaAssertion> for PerfDeltaAssertionRecord
Source§fn from(a: &PerfDeltaAssertion) -> Self
fn from(a: &PerfDeltaAssertion) -> Self
Source§impl PartialEq for PerfDeltaAssertionRecord
impl PartialEq for PerfDeltaAssertionRecord
Source§impl Serialize for PerfDeltaAssertionRecord
impl Serialize for PerfDeltaAssertionRecord
impl StructuralPartialEq for PerfDeltaAssertionRecord
Auto Trait Implementations§
impl Freeze for PerfDeltaAssertionRecord
impl RefUnwindSafe for PerfDeltaAssertionRecord
impl Send for PerfDeltaAssertionRecord
impl Sync for PerfDeltaAssertionRecord
impl Unpin for PerfDeltaAssertionRecord
impl UnwindSafe for PerfDeltaAssertionRecord
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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