pub enum JsonDiffOp {
ValueChanged {
path: String,
old: Value,
new: Value,
},
KeyAdded {
path: String,
value: Value,
},
KeyRemoved {
path: String,
value: Value,
},
Equal,
}Expand description
An operation in a structural JSON diff.
Variants§
ValueChanged
A scalar value changed at the given JSON path.
KeyAdded
A key was added to an object.
KeyRemoved
A key was removed from an object.
Equal
No differences found.
Trait Implementations§
Source§impl Clone for JsonDiffOp
impl Clone for JsonDiffOp
Source§fn clone(&self) -> JsonDiffOp
fn clone(&self) -> JsonDiffOp
Returns a duplicate 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 JsonDiffOp
impl Debug for JsonDiffOp
Source§impl<'de> Deserialize<'de> for JsonDiffOp
impl<'de> Deserialize<'de> for JsonDiffOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JsonDiffOp
impl RefUnwindSafe for JsonDiffOp
impl Send for JsonDiffOp
impl Sync for JsonDiffOp
impl Unpin for JsonDiffOp
impl UnsafeUnpin for JsonDiffOp
impl UnwindSafe for JsonDiffOp
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