Skip to main content

unwrap_query_state

Function unwrap_query_state 

Source
pub fn unwrap_query_state(
    since: &State,
    language: Option<&[LanguageRange]>,
) -> Result<State, JmapError>
Expand description

The backend’s queryState inside a Foo/queryChanges sinceQueryState, checked against the request’s language.

§Errors

cannotCalculateChanges when the language that sinceQueryState was computed with differs from language (draft-atwood-jmap-updates-00 §4.2.3), including when one of them has a language and the other not.