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 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", so this trait is not object safe.

Implementors§