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§
- Added
Item - A single item added to a query result set (RFC 8620 §5.6).
- Changes
Response - RFC 8620 §5.2 —
Foo/changesresponse shape. - GetResponse
- RFC 8620 §5.1 —
Foo/getresponse shape. - Query
Changes Response - RFC 8620 §5.6 —
Foo/queryChangesresponse shape. - Query
Response - RFC 8620 §5.5 —
Foo/queryresponse shape. - SetError
- A per-item failure in a
/setresponse (RFC 8620 §5.3). - SetResponse
- RFC 8620 §5.3 —
Foo/setresponse shape.
Enums§
- Client
Error - Errors produced by the base JMAP client.
Traits§
- Jmap
Metadata Ext - Extension trait adding JMAP Object Metadata (draft-ietf-jmap-metadata-01)
methods to
jmap_base_client::JmapClient.