pub struct CompareExportRow {
pub bench_name: String,
pub metric: String,
pub baseline_value: f64,
pub current_value: f64,
pub regression_pct: f64,
pub status: String,
pub threshold: f64,
pub warn_threshold: Option<f64>,
pub cv: Option<f64>,
pub noise_threshold: Option<f64>,
}Expand description
Row structure for CompareReceipt export.
§Examples
use perfgate_export::CompareExportRow;
let row = CompareExportRow {
bench_name: "my-bench".to_string(),
metric: "wall_ms".to_string(),
baseline_value: 100.0,
current_value: 110.0,
regression_pct: 10.0,
status: "pass".to_string(),
threshold: 20.0,
warn_threshold: Some(18.0),
cv: None,
noise_threshold: None,
};
assert_eq!(row.metric, "wall_ms");
assert_eq!(row.status, "pass");Fields§
§bench_name: String§metric: String§baseline_value: f64§current_value: f64§regression_pct: f64§status: String§threshold: f64§warn_threshold: Option<f64>§cv: Option<f64>§noise_threshold: Option<f64>Trait Implementations§
Source§impl Clone for CompareExportRow
impl Clone for CompareExportRow
Source§fn clone(&self) -> CompareExportRow
fn clone(&self) -> CompareExportRow
Returns a duplicate of the value. Read more
1.0.0 · 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 CompareExportRow
impl Debug for CompareExportRow
Source§impl<'de> Deserialize<'de> for CompareExportRow
impl<'de> Deserialize<'de> for CompareExportRow
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompareExportRow
impl RefUnwindSafe for CompareExportRow
impl Send for CompareExportRow
impl Sync for CompareExportRow
impl Unpin for CompareExportRow
impl UnsafeUnpin for CompareExportRow
impl UnwindSafe for CompareExportRow
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