Skip to main content

diff

Function diff 

Source
pub fn diff(
    actual: &Value,
    expected: &Value,
    config: &DiffConfig,
) -> Result<DiffTree, Error>
Expand description

Computes a diff tree between actual and expected values.

The walk is driven by expected. Only paths present in the expected value are compared. Fields in actual that have no corresponding expected entry are counted as omitted but not diffed.