Skip to main content

diff

Function diff 

Source
pub fn diff(
    record: &ResourceDesc,
    before: &dyn Any,
    after: &dyn Any,
    path: &[Segment],
    out: &mut Vec<Edit<()>>,
)
Expand description

Model::diff of a record: each field that is not read-only, at its key. A field that would store as it is (Model::stores_as) has nothing to submit and is passed over, compared in memory: no path made for it, nothing turned into JSON. The path of a field compared further is made once, in one buffer.