Skip to main content

Crate jmap_contacts_client

Crate jmap_contacts_client 

Source
Expand description

jmap-contacts-client — JMAP Contacts method implementations.

Depends on jmap-base-client for transport, auth, and session. See PLAN.md for the full implementation plan.

§Usage

let session = client.fetch_session().await?;
let sc = client.with_contacts_session(session);
// List all address books in the primary account.
let address_books = sc.address_book_get(None, None).await?;

Re-exports§

pub use methods::AddressBookSetParams;
pub use methods::SessionClient;

Modules§

methods
Typed JMAP Contacts method wrappers — response types, SessionClient, constants, and helpers.

Structs§

AddedItem
A single item added to a query result set (RFC 8620 §5.6).
ChangesResponse
RFC 8620 §5.2 — Foo/changes response shape.
GetResponse
RFC 8620 §5.1 — Foo/get response shape.
QueryChangesResponse
RFC 8620 §5.6 — Foo/queryChanges response shape.
QueryResponse
RFC 8620 §5.5 — Foo/query response shape.
SetError
A per-item failure in a /set response (RFC 8620 §5.3).
SetResponse
RFC 8620 §5.3 — Foo/set response shape.

Enums§

ClientError
Errors produced by the base JMAP client.

Traits§

JmapContactsExt
Extension trait adding JMAP Contacts methods to jmap_base_client::JmapClient.