pub struct FieldDiff {
pub step: usize,
pub path: String,
pub before: Option<Value>,
pub after: Option<Value>,
pub kind: FieldDiffKind,
}Expand description
A field-level difference within an aligned step pair (the object/text diff inside a sync move). Emitted only where the payloads actually differ.
Fields§
§step: usizeIndex into DiffResult::alignment identifying the aligned pair this diff refines.
path: StringPath into the payload, rooted at the slot: outputs.status for an object key, or just
the slot name (inputs/outputs) when the whole payload is the diff unit (a text
body, a one-sided slot).
before: Option<Value>Value on run a’s side; None when the field was FieldDiffKind::Added.
after: Option<Value>Value on run b’s side; None when the field was FieldDiffKind::Removed.
kind: FieldDiffKindTrait Implementations§
Source§impl<'de> Deserialize<'de> for FieldDiff
impl<'de> Deserialize<'de> for FieldDiff
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
impl StructuralPartialEq for FieldDiff
Auto Trait Implementations§
impl Freeze for FieldDiff
impl RefUnwindSafe for FieldDiff
impl Send for FieldDiff
impl Sync for FieldDiff
impl Unpin for FieldDiff
impl UnsafeUnpin for FieldDiff
impl UnwindSafe for FieldDiff
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