Skip to main content

parse_destroyed_query_arguments

Function parse_destroyed_query_arguments 

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

Take the §4 arguments out of a Foo/query or Foo/queryChanges (-04) args.

None when onlyDestroyed is false or absent. An explicit null window is not “supplied” (its default is null).

§Errors

invalidArguments for a malformed argument; a non-null destroyedAfter or destroyedBefore with onlyDestroyed false (§4); onlyDestroyed: true or a non-null window without the URI in using (decision 18).