Skip to main content

diff

Function diff 

Source
pub fn diff(
    before: Option<&Value>,
    after: &Map<String, Value>,
) -> Map<String, Value>
Expand description

Diff a submitted write against the row it replaced, keeping only the columns that actually changed.

before is the stored row (None for a create). Returns [old, new] pairs.