Skip to main content

Module query_changes

Module query_changes 

Source
Expand description

Generic JMAP Foo/queryChanges coroutine (RFC 8620 §5.6): wraps JmapSend with a since_query_state cursor and decodes the removed/added id deltas.

§Example

use io_jmap::rfc8620::query_changes::{JmapQueryChanges, JmapQueryChangesOptions};
use secrecy::SecretString;
use serde_json::Value;
use url::Url;

let auth = SecretString::from("Bearer xyz");
let api_url: Url = "https://api.example.com/jmap/".parse().unwrap();
let coroutine = JmapQueryChanges::new::<Value, Value>(
    "a1".into(),
    &auth,
    &api_url,
    "Email/queryChanges",
    vec!["urn:ietf:params:jmap:mail".into()],
    "qs1",
    JmapQueryChangesOptions::default(),
)
.unwrap();

Structs§

JmapAddedItem
A single added item in a Foo/queryChanges response (RFC 8620 §5.6).
JmapQueryChanges
Generic I/O-free coroutine for the JMAP Foo/queryChanges method (RFC 8620 §5.6).
JmapQueryChangesOptions
Options for JmapQueryChanges::new.
JmapQueryChangesOutput
Successful terminal output of JmapQueryChanges.

Enums§

JmapQueryChangesError
Failure causes during a JMAP Foo/queryChanges flow.