#[non_exhaustive]pub enum ComparisonError {
UnsupportedSchema {
side: ComparisonSide,
found: u32,
supported: u32,
},
MissingSuite {
side: ComparisonSide,
},
SuiteMismatch {
current: String,
baseline: String,
},
UnknownRunner {
side: ComparisonSide,
},
RunnerMismatch {
current: String,
baseline: String,
},
EnvironmentMismatch {
current: BTreeMap<String, String>,
baseline: BTreeMap<String, String>,
},
InvalidEnvironmentOverride,
DuplicateIdentity {
side: ComparisonSide,
identity: ComparisonCaseIdentity,
},
EmptyResultSet {
side: ComparisonSide,
},
InvalidReport {
side: ComparisonSide,
reason: String,
},
ResultSetMismatch {
added: usize,
removed: usize,
},
ReferenceSerialization {
side: ComparisonSide,
message: String,
},
}Expand description
Semantic failure while comparing two otherwise readable reports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedSchema
MissingSuite
Fields
§
side: ComparisonSideSuiteMismatch
UnknownRunner
Fields
§
side: ComparisonSideRunnerMismatch
EnvironmentMismatch
InvalidEnvironmentOverride
DuplicateIdentity
EmptyResultSet
Fields
§
side: ComparisonSideInvalidReport
ResultSetMismatch
ReferenceSerialization
Trait Implementations§
Source§impl Clone for ComparisonError
impl Clone for ComparisonError
Source§fn clone(&self) -> ComparisonError
fn clone(&self) -> ComparisonError
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 ComparisonError
impl Debug for ComparisonError
Source§impl Display for ComparisonError
impl Display for ComparisonError
impl Eq for ComparisonError
Source§impl Error for ComparisonError
impl Error for ComparisonError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ComparisonError
impl PartialEq for ComparisonError
impl StructuralPartialEq for ComparisonError
Auto Trait Implementations§
impl Freeze for ComparisonError
impl RefUnwindSafe for ComparisonError
impl Send for ComparisonError
impl Sync for ComparisonError
impl Unpin for ComparisonError
impl UnsafeUnpin for ComparisonError
impl UnwindSafe for ComparisonError
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