Enum assert_json_diff::CompareMode [−][src]
Mode for how JSON values should be compared.
Variants
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
.
The two JSON values must be exactly equal.
The mode used with assert_json_eq
.
Trait Implementations
impl Clone for CompareMode
[src]
fn clone(&self) -> CompareMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompareMode
[src]
impl Debug for CompareMode
[src]
impl Eq for CompareMode
[src]
impl PartialEq<CompareMode> for CompareMode
[src]
fn eq(&self, other: &CompareMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for CompareMode
[src]
impl StructuralPartialEq for CompareMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompareMode
[src]
impl Send for CompareMode
[src]
impl Sync for CompareMode
[src]
impl Unpin for CompareMode
[src]
impl UnwindSafe for CompareMode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,