pub enum DiffKind {
Changed {
actual: Value,
expected: Value,
},
Missing {
expected: Value,
},
TypeMismatch {
actual: Value,
actual_type: &'static str,
expected: Value,
expected_type: &'static str,
},
}Expand description
The kind of difference found at a leaf node.
Variants§
Changed
Values differ but have the same type.
Fields
Missing
A key or element is missing from the actual data.
TypeMismatch
Values have different JSON types.
Implementations§
Auto Trait Implementations§
impl Freeze for DiffKind
impl RefUnwindSafe for DiffKind
impl Send for DiffKind
impl Sync for DiffKind
impl Unpin for DiffKind
impl UnsafeUnpin for DiffKind
impl UnwindSafe for DiffKind
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