Skip to main content

Crate jmap_tasks_server

Crate jmap_tasks_server 

Source
Expand description

JMAP Tasks extension method handlers (draft-ietf-jmap-tasks-06).

§Usage

Implement TasksBackend for your storage layer, then call register_tasks_handlers to wire all method names into a jmap_server::Dispatcher:

let mut dispatcher: Dispatcher<()> = Dispatcher::new();
register_tasks_handlers(&mut dispatcher, Arc::new(backend));

§memory feature (reference implementation)

Enable the memory feature to expose the memory::MemoryBackend reference implementation of TasksBackend. This is the same backend used by this crate’s own integration tests, intended for downstream contributors to study and for smoke tests / examples that do not want to stand up a real database. Not production. API stability is opt-in via this feature and may break across minor versions while the crate is pre-1.0.

Enums§

TaskListProperty
Property selector for crate::TaskList /get and /set.
TaskNotificationProperty
Property selector for crate::TaskNotification /get.
TaskProperty
Property selector for crate::Task /get and /set.

Constants§

JMAP_TASKS_URI
Capability URI for urn:ietf:params:jmap:tasks. Capability URI for core JMAP Tasks support (draft-tasks-06 §1.6.1).

Traits§

TasksBackend
Storage backend for JMAP Tasks method handlers (draft-ietf-jmap-tasks-06).

Functions§

handle_task_changes
Handle a Task/changes method call (draft-tasks-06 §4.6).
handle_task_copy
Handle a Task/copy method call (draft-tasks-06 §4.8).
handle_task_get
Handle a Task/get method call (draft-tasks-06 §4.5).
handle_task_list_changes
Handle a TaskList/changes method call (draft-tasks-06 §3.6).
handle_task_list_get
Handle a TaskList/get method call (draft-tasks-06 §3.5).
handle_task_list_set
Handle a TaskList/set method call (draft-tasks-06 §3.7).
handle_task_notification_changes
Handle a TaskNotification/changes method call (draft-tasks-06 §5.3).
handle_task_notification_get
Handle a TaskNotification/get method call (draft-tasks-06 §5.2).
handle_task_notification_query
Handle a TaskNotification/query method call (draft-tasks-06 §5.5).
handle_task_notification_query_changes
Handle a TaskNotification/queryChanges method call (draft-tasks-06 §5.6).
handle_task_notification_set
Handle a TaskNotification/set method call (draft-tasks-06 §5.4).
handle_task_query
Handle a Task/query method call (draft-tasks-06 §4.13).
handle_task_query_changes
Handle a Task/queryChanges method call (draft-tasks-06 §4.14).
handle_task_set
Handle a Task/set method call (draft-tasks-06 §4.7).
register_tasks_handlers
Register all JMAP Tasks method handlers with dispatcher.