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".

Implementations on Foreign Types§

Source§

impl SetObject for Chat

Source§

impl SetObject for ChatContact

Source§

impl SetObject for CustomEmoji

Source§

impl SetObject for Message

Source§

impl SetObject for PresenceStatus

Source§

impl SetObject for ReadPosition

Source§

impl SetObject for Space

Source§

impl SetObject for SpaceBan

Source§

impl SetObject for SpaceInvite

Implementors§