#[non_exhaustive]pub struct ChatPatch<'a> {
pub muted: Option<bool>,
pub mute_until: Patch<&'a UTCDate>,
pub receive_typing_indicators: Option<bool>,
pub pinned_message_ids: Option<&'a [Id]>,
pub message_expiry_seconds: Option<u64>,
pub receipt_sharing: Option<bool>,
pub name: Option<&'a str>,
pub description: Patch<&'a str>,
pub avatar_blob_id: Patch<&'a Id>,
pub add_members: Option<&'a [AddMemberInput<'a>]>,
pub remove_members: Option<&'a [Id]>,
pub update_member_roles: Option<&'a [UpdateMemberRoleInput<'a>]>,
}Expand description
Patch parameters for Chat/set update.
All fields are optional; absent fields are not included in the patch (the
server leaves them unchanged). For nullable spec fields (mute_until,
description, avatar_blob_id) use Patch::Set(v) to set and
Patch::Clear to null-clear. Slice fields default to None (no change).
Use ..Default::default() to fill in unused fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.muted: Option<bool>Mute or unmute this chat. None = no change.
mute_until: Patch<&'a UTCDate>Patch::Clear clears muteUntil; Patch::Set(t) sets it.
receive_typing_indicators: Option<bool>Whether typing indicators from peers are surfaced to the caller. None = no change.
pinned_message_ids: Option<&'a [Id]>Replace the entire pinned-message list. Some(&[]) clears all pins.
message_expiry_seconds: Option<u64>Spec defines this as UnsignedInt (non-nullable).
receipt_sharing: Option<bool>Whether read receipts are shared with peers. None = no change.
name: Option<&'a str>New display name (group chats, admin only).
description: Patch<&'a str>Patch::Clear clears; Patch::Set(s) sets (group chats, admin only).
avatar_blob_id: Patch<&'a Id>Patch::Clear clears; Patch::Set(id) sets (group chats, admin only).
add_members: Option<&'a [AddMemberInput<'a>]>Members to add (group chats, admin only). None = no change.
remove_members: Option<&'a [Id]>ChatContact.ids to remove (group chats, admin only). None = no change.
update_member_roles: Option<&'a [UpdateMemberRoleInput<'a>]>Role changes for existing members (group chats, admin only). None = no change.