pub enum Difference {
MissingKey {
path: String,
key: String,
present_in: Side,
},
KindMismatch {
path: String,
left: &'static str,
right: &'static str,
},
ValueMismatch {
path: String,
left: String,
right: String,
},
TagMismatch {
path: String,
left: Option<String>,
right: Option<String>,
},
LengthMismatch {
path: String,
left: usize,
right: usize,
},
}Expand description
One way in which two documents differ.
Variants§
MissingKey
A mapping key present on one side only.
Fields
KindMismatch
The two nodes are different kinds of thing.
Fields
ValueMismatch
Two scalars resolve to different values.
Fields
TagMismatch
The nodes carry different tags.
Fields
LengthMismatch
Two sequences have different lengths.
Implementations§
Trait Implementations§
Source§impl Clone for Difference
impl Clone for Difference
Source§fn clone(&self) -> Difference
fn clone(&self) -> Difference
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 Difference
impl Debug for Difference
Source§impl Display for Difference
impl Display for Difference
Source§impl PartialEq for Difference
impl PartialEq for Difference
impl StructuralPartialEq for Difference
Auto Trait Implementations§
impl Freeze for Difference
impl RefUnwindSafe for Difference
impl Send for Difference
impl Sync for Difference
impl Unpin for Difference
impl UnsafeUnpin for Difference
impl UnwindSafe for Difference
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