pub struct MismatchEntry {
pub path: String,
pub cached: Option<Value>,
pub source: Option<Value>,
}Expand description
One difference in a confirmed-mismatch warning: an RFC 6901 JSON Pointer
into the compared value and, optionally, what each side holds there. A
side is None when the member exists on the other side only, or when the
hook reports where the values differ but not what they hold.
Fields§
§path: StringThe pointer, such as /profile/email; "" is the whole value.
cached: Option<Value>The cached side at the pointer.
source: Option<Value>The source side at the pointer.
Trait Implementations§
Source§impl Clone for MismatchEntry
impl Clone for MismatchEntry
Source§fn clone(&self) -> MismatchEntry
fn clone(&self) -> MismatchEntry
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 MismatchEntry
impl Debug for MismatchEntry
Source§impl PartialEq for MismatchEntry
impl PartialEq for MismatchEntry
Source§fn eq(&self, other: &MismatchEntry) -> bool
fn eq(&self, other: &MismatchEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MismatchEntry
impl Serialize for MismatchEntry
impl StructuralPartialEq for MismatchEntry
Auto Trait Implementations§
impl Freeze for MismatchEntry
impl RefUnwindSafe for MismatchEntry
impl Send for MismatchEntry
impl Sync for MismatchEntry
impl Unpin for MismatchEntry
impl UnsafeUnpin for MismatchEntry
impl UnwindSafe for MismatchEntry
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