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§
Source§impl Clone for CompareMode
impl Clone for CompareMode
Source§fn clone(&self) -> CompareMode
fn clone(&self) -> CompareMode
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 Debug for CompareMode
impl Debug for CompareMode
Source§impl PartialEq for CompareMode
impl PartialEq for CompareMode
impl Copy for CompareMode
impl Eq for CompareMode
impl StructuralPartialEq for CompareMode
Auto Trait Implementations§
impl Freeze for CompareMode
impl RefUnwindSafe for CompareMode
impl Send for CompareMode
impl Sync for CompareMode
impl Unpin for CompareMode
impl UnwindSafe for CompareMode
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