#[non_exhaustive]pub struct ComparisonReport {
pub schema_version: u32,
pub current: ReportReference,
pub baseline: ReportReference,
pub suite: String,
pub environment: EnvironmentComparison,
pub matched: Vec<MatchedBenchmark>,
pub added: Vec<UnmatchedBenchmark>,
pub removed: Vec<UnmatchedBenchmark>,
pub summary: ComparisonSummary,
}Expand description
Serializable, policy-free relationship between two benchmark reports.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: u32§current: ReportReference§baseline: ReportReference§suite: String§environment: EnvironmentComparison§matched: Vec<MatchedBenchmark>§added: Vec<UnmatchedBenchmark>§removed: Vec<UnmatchedBenchmark>§summary: ComparisonSummaryImplementations§
Source§impl ComparisonReport
impl ComparisonReport
Sourcepub fn analyze(
&self,
policy: &RegressionPolicy,
) -> Result<ComparisonAnalysis, PolicyError>
pub fn analyze( &self, policy: &RegressionPolicy, ) -> Result<ComparisonAnalysis, PolicyError>
Apply policy while retaining the policy-free comparison unchanged.
Trait Implementations§
Source§impl Clone for ComparisonReport
impl Clone for ComparisonReport
Source§fn clone(&self) -> ComparisonReport
fn clone(&self) -> ComparisonReport
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 ComparisonReport
impl Debug for ComparisonReport
Source§impl<'de> Deserialize<'de> for ComparisonReport
impl<'de> Deserialize<'de> for ComparisonReport
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
Source§impl PartialEq for ComparisonReport
impl PartialEq for ComparisonReport
Source§impl Serialize for ComparisonReport
impl Serialize for ComparisonReport
impl StructuralPartialEq for ComparisonReport
Auto Trait Implementations§
impl Freeze for ComparisonReport
impl RefUnwindSafe for ComparisonReport
impl Send for ComparisonReport
impl Sync for ComparisonReport
impl Unpin for ComparisonReport
impl UnsafeUnpin for ComparisonReport
impl UnwindSafe for ComparisonReport
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