Skip to main content

handle_task_notification_query_changes

Function handle_task_notification_query_changes 

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

Handle a TaskNotification/queryChanges method call (draft-tasks-06 §5.6).

args is the RFC 8620 §5.6 /queryChanges request shape (accountId, optional filter, optional sort, sinceQueryState, optional maxChanges, optional upToId, optional calculateTotal); the returned Value is the §5.6 /queryChanges response shape (accountId, oldQueryState, newQueryState, optional total, removed, added).

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