#[non_exhaustive]pub struct SpaceUpdateCategoryInput<'a> {
pub id: &'a Id,
pub name: Option<&'a str>,
pub position: Option<u64>,
pub channel_ids: Option<&'a [Id]>,
}Expand description
One category update in the updateCategories patch key of Space/set update
(JMAP Chat §Space/set update / manage_channels permission).
Fields left at their default (None) 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 IdCategory id to update.
name: Option<&'a str>New name. None = no change.
position: Option<u64>New position. None = no change.
channel_ids: Option<&'a [Id]>Replace the member channel id list. None = no change.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpaceUpdateCategoryInput<'a>
impl<'a> RefUnwindSafe for SpaceUpdateCategoryInput<'a>
impl<'a> Send for SpaceUpdateCategoryInput<'a>
impl<'a> Sync for SpaceUpdateCategoryInput<'a>
impl<'a> Unpin for SpaceUpdateCategoryInput<'a>
impl<'a> UnsafeUnpin for SpaceUpdateCategoryInput<'a>
impl<'a> UnwindSafe for SpaceUpdateCategoryInput<'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