#[non_exhaustive]pub struct SpaceUpdateChannelInput<'a> {
pub id: &'a Id,
pub name: Option<&'a str>,
pub topic: Patch<&'a str>,
pub category_id: Patch<&'a Id>,
pub position: Option<u64>,
pub slow_mode_seconds: Option<u64>,
pub permission_overrides: Option<&'a [ChannelPermission]>,
}Expand description
One channel update in the updateChannels patch key of Space/set update
(JMAP Chat §Space/set update / manage_channels permission).
Fields left at their default (None / Patch::Keep) are omitted from
the wire patch and the server leaves the corresponding property unchanged.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: &'a IdChannel Chat id (kind "channel", spaceId is this Space).
name: Option<&'a str>New channel name. None = no change.
topic: Patch<&'a str>Set or clear the channel topic. Patch::Clear removes any assigned topic.
category_id: Patch<&'a Id>Set or clear the parent category. Patch::Clear moves the channel to
the uncategorizedChannelIds list.
position: Option<u64>New position within its category. None = no change.
slow_mode_seconds: Option<u64>New slow-mode delay in seconds (0 = disabled). None = no change.
permission_overrides: Option<&'a [ChannelPermission]>Replace the permission-overrides list. None = no change.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpaceUpdateChannelInput<'a>
impl<'a> RefUnwindSafe for SpaceUpdateChannelInput<'a>
impl<'a> Send for SpaceUpdateChannelInput<'a>
impl<'a> Sync for SpaceUpdateChannelInput<'a>
impl<'a> Unpin for SpaceUpdateChannelInput<'a>
impl<'a> UnsafeUnpin for SpaceUpdateChannelInput<'a>
impl<'a> UnwindSafe for SpaceUpdateChannelInput<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more