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 holding an RFC 8620 §5.3 PatchObject, whose keys are JSON Pointer paths (RFC 6901) with an implicit leading /. This is not an RFC 7396 JSON Merge Patch. A typed struct is also allowed if it serializes to that PatchObject shape.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§