pub fn apply_restore_patch<O: SetObject>(
final_version: &Map<String, Value>,
patch: Option<&PatchObject>,
) -> Result<Map<String, Value>, Box<SetError>>Expand description
Apply a restore patch to final_version (§5.1: the patch “follows the
same rules as a PatchObject in an update in Foo/set”), all or nothing.
A patch that changes a SetObject::SERVER_SET or
SetObject::IMMUTABLE property is invalidProperties naming each;
one that repeats the final version’s value is allowed (-04: “a client
can send a whole version of the object as the patch”). A bad path is
invalidPatch.
§Errors
The SetError above.