Skip to main content

query_anchor_args

Function query_anchor_args 

Source
pub fn query_anchor_args(
    args: &Map<String, Value>,
) -> Result<(Option<Id>, i64), JmapError>
Expand description

Parse the RFC 8620 §5.5 /query arguments anchor (Id|null) and anchorOffset (Int, default 0) from args.

§Errors

invalidArguments when anchor is neither a string nor null, is a string that is not an RFC 8620 §1.2 Id, or anchorOffset is neither an integer nor null.