Skip to main content

Module backend

Module backend 

Source
Expand description

Shared backend infrastructure for all JMAP server crates.

Re-exports the marker traits from jmap-types and adds the result types, BackendChangesError, and JmapBackend supertrait. Domain crates add their write-side methods and domain-specific error variants on top.

Structs§

AddedItem
One entry in the added list of a /queryChanges response (RFC 8620 §5.6).
ChangesResult
Result of a /changes call (RFC 8620 §5.2).
QueryChangesResult
Result of a /queryChanges call (RFC 8620 §5.6).
QueryResult
Result of a /query call (RFC 8620 §5.5).
ReservedExtrasKey
Returned by SetError::validate_extras when SetError::extra contains a key that collides with a typed-field wire-name in RESERVED_SET_ERROR_WIRE_NAMES (bd:JMAP-jfia.17).
SetError
A per-item error in a /set response (notCreated, notUpdated, notDestroyed maps) (RFC 8620 §5.3).

Enums§

BackendChangesError
Error type returned by JmapBackend::get_changes and JmapBackend::query_changes.
BackendSetError
Error type returned by create/update/destroy backend methods.
SetErrorType
The machine-readable type for a SetError (RFC 8620 §5.3 and RFC 8621).

Constants§

RESERVED_SET_ERROR_WIRE_NAMES
Reserved wire-name keys that SetError::with_extra MUST NOT receive.

Traits§

GetObject
Marker for object types that support get and changes operations.
JmapBackend
Read-side backend supertrait shared by all JMAP server crates.
JmapObject
Marker trait for all JMAP object types.
QueryObject
Marker for object types that support query and queryChanges operations.
SetObject
Marker for object types that support set (create/update/destroy) operations.