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

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§