Skip to main content

handle_task_list_get

Function handle_task_list_get 

Source
pub async fn handle_task_list_get<B: TasksBackend>(
    backend: &B,
    caller: &B::CallerCtx,
    args: Value,
) -> Result<(Value, Vec<Invocation>), JmapError>
Expand description

Handle a TaskList/get method call (draft-tasks-06 §3.5).

args is the RFC 8620 §5.1 /get request shape (accountId, optional ids, optional properties); the returned Value is the §5.1 /get response shape (accountId, state, list, notFound).

Returns (response_args, extra_invocations). The extra list is always empty.