pub struct DiffEntry {
pub path: String,
pub kind: DiffKind,
pub before: Option<Value>,
pub after: Option<Value>,
}Expand description
One difference at a given path. before/after are omitted from JSON when None.
Fields§
§path: StringDotted/bracketed location, e.g. models.foo or cores[0].name; <root> for a top-level scalar change.
kind: DiffKindWhether the entry was added, removed, or changed.
before: Option<Value>Value at path in before; None for Added.
after: Option<Value>Value at path in after; None for Removed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffEntry
impl RefUnwindSafe for DiffEntry
impl Send for DiffEntry
impl Sync for DiffEntry
impl Unpin for DiffEntry
impl UnsafeUnpin for DiffEntry
impl UnwindSafe for DiffEntry
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