Skip to main content

Module changes

Module changes 

Source
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§

JmapChanges
Generic I/O-free coroutine for the JMAP Foo/changes method (RFC 8620 §5.2).
JmapChangesOptions
Options for JmapChanges::new.
JmapChangesOutput
Successful terminal output of JmapChanges and of the per-type wrappers (JmapMailboxChanges, JmapEmailChanges, JmapThreadChanges).

Enums§

JmapChangesError
Failure causes during a JMAP Foo/changes flow.