Enum assert_json_diff::CompareMode
source · [−]pub enum CompareMode {
Inclusive,
Strict,
}
Expand description
Mode for how JSON values should be compared.
Variants
Inclusive
The two JSON values don’t have to be exactly equal. The “actual” value is only required to be “contained” inside “expected”. See crate documentation for examples.
The mode used with assert_json_include
.
Strict
The two JSON values must be exactly equal.
The mode used with assert_json_eq
.
Trait Implementations
sourceimpl Clone for CompareMode
impl Clone for CompareMode
sourcefn clone(&self) -> CompareMode
fn clone(&self) -> CompareMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompareMode
impl Debug for CompareMode
sourceimpl PartialEq<CompareMode> for CompareMode
impl PartialEq<CompareMode> for CompareMode
impl Copy for CompareMode
impl Eq for CompareMode
impl StructuralEq for CompareMode
impl StructuralPartialEq for CompareMode
Auto Trait Implementations
impl RefUnwindSafe for CompareMode
impl Send for CompareMode
impl Sync for CompareMode
impl Unpin for CompareMode
impl UnwindSafe for CompareMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more