Skip to main content

handle_task_query

Function handle_task_query 

Source
pub async fn handle_task_query<B: TasksBackend>(
    backend: &B,
    caller: &B::CallerCtx,
    args: Value,
    using: &[String],
) -> Result<HandlerOutput, JmapError>
Expand description

Handle a Task/query method call (draft-tasks-06 §4.13).

args is the RFC 8620 §5.5 /query request shape (accountId, optional filter, optional sort, optional position, optional anchor, optional anchorOffset, optional limit, optional calculateTotal); the returned Value is the §5.5 /query response shape (accountId, queryState, canCalculateChanges, position, ids, optional total).

using is the request’s capability list (pass jmap_server::CallContext::using); without urn:ietf:params:jmap:metadata a draft-ietf-jmap-metadata-04 §3.6 filter condition is unsupportedFilter (-04 §3).

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