#[non_exhaustive]pub struct SpacePatch<'a> {Show 17 fields
pub name: Option<&'a str>,
pub description: Patch<&'a str>,
pub icon_blob_id: Patch<&'a Id>,
pub is_public: Option<bool>,
pub is_publicly_previewable: Option<bool>,
pub add_members: Option<&'a [SpaceAddMemberInput<'a>]>,
pub remove_members: Option<&'a [Id]>,
pub update_members: Option<&'a [SpaceUpdateMemberInput<'a>]>,
pub add_channels: Option<&'a [SpaceAddChannelInput<'a>]>,
pub remove_channels: Option<&'a [Id]>,
pub update_channels: Option<&'a [SpaceUpdateChannelInput<'a>]>,
pub add_roles: Option<&'a [SpaceAddRoleInput<'a>]>,
pub remove_roles: Option<&'a [Id]>,
pub update_roles: Option<&'a [SpaceUpdateRoleInput<'a>]>,
pub add_categories: Option<&'a [SpaceAddCategoryInput<'a>]>,
pub remove_categories: Option<&'a [Id]>,
pub update_categories: Option<&'a [SpaceUpdateCategoryInput<'a>]>,
}Expand description
Patch parameters for Space/set update.
All fields are optional. Absent fields are omitted from the patch.
Nullable fields (description, icon_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.name: Option<&'a str>New display name (manage_space permission required).
description: Patch<&'a str>Patch::Clear clears; Patch::Set(s) sets.
icon_blob_id: Patch<&'a Id>Patch::Clear clears; Patch::Set(id) sets.
is_public: Option<bool>Toggle public-Space visibility. None = no change.
is_publicly_previewable: Option<bool>Toggle whether a public Space is previewable to non-members. None = no change.
add_members: Option<&'a [SpaceAddMemberInput<'a>]>Members to add (manage_members required). None = no change.
remove_members: Option<&'a [Id]>ChatContact.ids to remove (manage_members required). None = no change.
update_members: Option<&'a [SpaceUpdateMemberInput<'a>]>Member updates (manage_members required). None = no change.
add_channels: Option<&'a [SpaceAddChannelInput<'a>]>Channels to add (manage_channels required). None = no change.
remove_channels: Option<&'a [Id]>Channel Chat ids to remove (manage_channels required). None = no change.
update_channels: Option<&'a [SpaceUpdateChannelInput<'a>]>Channel updates (manage_channels required). None = no change.
add_roles: Option<&'a [SpaceAddRoleInput<'a>]>Roles to add (manage_roles required). None = no change.
remove_roles: Option<&'a [Id]>SpaceRole.ids to remove (manage_roles required). None = no change.
update_roles: Option<&'a [SpaceUpdateRoleInput<'a>]>Role updates (manage_roles required). None = no change.
add_categories: Option<&'a [SpaceAddCategoryInput<'a>]>Categories to add (manage_channels required). None = no change.
remove_categories: Option<&'a [Id]>Category ids to remove (manage_channels required). None = no change.
update_categories: Option<&'a [SpaceUpdateCategoryInput<'a>]>Category updates (manage_channels required). None = no change.