Expand description
Generic JMAP Foo/changes coroutine (RFC 8620 §5.2): wraps JmapSend
with a since_state cursor and decodes the changed-id lists.
§Example
use io_jmap::rfc8620::changes::{JmapChanges, JmapChangesOptions};
use secrecy::SecretString;
use url::Url;
let auth = SecretString::from("Bearer xyz");
let api_url: Url = "https://api.example.com/jmap/".parse().unwrap();
let coroutine = JmapChanges::new(
"a1".into(),
&auth,
&api_url,
"Email/changes",
vec!["urn:ietf:params:jmap:mail".into()],
"s1",
JmapChangesOptions::default(),
)
.unwrap();Structs§
- Jmap
Changes - Generic I/O-free coroutine for the JMAP
Foo/changesmethod (RFC 8620 §5.2). - Jmap
Changes Options - Options for
JmapChanges::new. - Jmap
Changes Output - Successful terminal output of
JmapChangesand of the per-type wrappers (JmapMailboxChanges,JmapEmailChanges,JmapThreadChanges).
Enums§
- Jmap
Changes Error - Failure causes during a JMAP
Foo/changesflow.