Skip to main content

SetObject

Trait SetObject 

Source
pub trait SetObject: JmapObject {
    type Patch: Serialize + DeserializeOwned + Send + Sync + 'static;
}
Expand description

Marker for object types that support set (create/update/destroy) operations.

Required Associated Types§

Source

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

The patch type for update operations.

Typically serde_json::Value for open-ended JSON Merge Patch, or a typed struct if the backend wants structured patching.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§