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§
- Jmap
Added Item - A single added item in a
Foo/queryChangesresponse (RFC 8620 §5.6). - Jmap
Query Changes - Generic I/O-free coroutine for the JMAP
Foo/queryChangesmethod (RFC 8620 §5.6). - Jmap
Query Changes Options - Options for
JmapQueryChanges::new. - Jmap
Query Changes Output - Successful terminal output of
JmapQueryChanges.
Enums§
- Jmap
Query Changes Error - Failure causes during a JMAP
Foo/queryChangesflow.