pub struct GroupComparisonResult {
pub name: String,
pub description: String,
pub baseline_metrics: GroupComparisonMetrics,
pub group_names: Vec<String>,
pub group_metrics: Vec<GroupComparisonMetrics>,
pub differences: Vec<GroupDifference>,
}
Expand description
Contains the result of comparing custom field groupings defined in the schema.
Fields§
§name: String
The name of the group comparison. (Copied from schema)
description: String
A description of the group comparison. (Copied from schema)
baseline_metrics: GroupComparisonMetrics
Metrics for the baseline group.
group_names: Vec<String>
Names of the comparison groups in order they were specified in the schema
group_metrics: Vec<GroupComparisonMetrics>
Metrics for the comparison groups in schema order
differences: Vec<GroupDifference>
Comparison between other groups and first (baseline) group.
Implementations§
Source§impl GroupComparisonResult
impl GroupComparisonResult
Sourcepub fn from_custom_comparison<T: AsRef<[u8]>>(
name: String,
description: String,
baseline_bytes: &[u8],
comparison_byte_slices: &[T],
group_names: &[String],
compression_options: CompressionOptions,
) -> Result<Self, GroupComparisonError>
pub fn from_custom_comparison<T: AsRef<[u8]>>( name: String, description: String, baseline_bytes: &[u8], comparison_byte_slices: &[T], group_names: &[String], compression_options: CompressionOptions, ) -> Result<Self, GroupComparisonError>
Creates comparison results from precomputed group bytes
Arguments:
name
- The name of the comparison (copied from schema)description
- The description of the comparison (copied from schema)baseline_bytes
- The bytes of the baseline (original/reference) group.comparison_byte_slices
- The bytes of the comparison groups.group_names
- The names of the comparison groups in order they were specified in the schema.compression_options
- Compression options, zstd compression level, etc.
Trait Implementations§
Source§impl Clone for GroupComparisonResult
impl Clone for GroupComparisonResult
Source§fn clone(&self) -> GroupComparisonResult
fn clone(&self) -> GroupComparisonResult
Returns a copy 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 From<GroupComparisonResult> for MergedGroupComparisonResult
impl From<GroupComparisonResult> for MergedGroupComparisonResult
Source§fn from(result: GroupComparisonResult) -> Self
fn from(result: GroupComparisonResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GroupComparisonResult
impl RefUnwindSafe for GroupComparisonResult
impl Send for GroupComparisonResult
impl Sync for GroupComparisonResult
impl Unpin for GroupComparisonResult
impl UnwindSafe for GroupComparisonResult
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> 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>
Converts
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>
Converts
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