Skip to main content

QueryObject

Trait QueryObject 

Source
pub trait QueryObject: JmapObject {
    type Filter: Serialize + DeserializeOwned + Send + Sync + 'static;
    type Comparator: Serialize + DeserializeOwned + Send + Sync + 'static;
}
Expand description

Marker trait identifying a “queryable” JMAP object type. Adds the Filter and Comparator associated types on top of JmapObject. Marker for object types that support query and queryChanges operations.

Required Associated Types§

Source

type Filter: Serialize + DeserializeOwned + Send + Sync + 'static

The filter condition type.

Must implement both Serialize and DeserializeOwned so that backends can inspect or forward the filter.

Source

type Comparator: Serialize + DeserializeOwned + Send + Sync + 'static

The comparator type for sort operations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl QueryObject for Task

Source§

impl QueryObject for TaskList

Source§

impl QueryObject for TaskNotification

Implementors§