Skip to main content

diff_snapshots

Function diff_snapshots 

Source
pub fn diff_snapshots(a: &Value, b: &Value) -> Vec<FieldDiff>
Expand description

Compare two page revision snapshots field-by-field. Returns one FieldDiff per declared diff field (see DIFF_FIELDS), in declaration order.

Both arguments are the raw snapshot JSON from the Revision row.