Skip to main content

parse_restore_argument

Function parse_restore_argument 

Source
pub fn parse_restore_argument(
    args: &mut Map<String, Value>,
    using: &[String],
) -> Result<Map<String, Value>, JmapError>
Expand description

Take restore (§5.1) out of a Foo/set’s args: each key as sent with its raw value. Empty when absent, null or {}.

§Errors

invalidArguments for a restore that is neither an object nor null, or a non-empty one without the URI in using (decision 18).