Skip to main content

Crate jmap_metadata_client

Crate jmap_metadata_client 

Source
Expand description

jmap-metadata-client — JMAP Object Metadata extension method implementations.

Implements the client-side method bindings for draft-ietf-jmap-metadata-01. Depends on jmap-base-client for transport, auth, and session, and on jmap-metadata-types for the wire types.

Cookie-cut from jmap-mail-client (canonical extension-client template per workspace AGENTS.md).

§Usage

let session = client.fetch_session().await?;
let sc = client.with_metadata_session(session);
// Fetch all Metadata objects in the account.
let metadata = sc.metadata_get(None, None).await?;

Re-exports§

pub use methods::MetadataChangesParams;
pub use methods::SessionClient;

Modules§

methods
Typed JMAP Metadata 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§

JmapMetadataExt
Extension trait adding JMAP Object Metadata (draft-ietf-jmap-metadata-01) methods to jmap_base_client::JmapClient.