#[non_exhaustive]pub struct SpaceAddCategoryInput<'a> {
pub name: &'a str,
pub position: Option<u64>,
pub channel_ids: Option<&'a [Id]>,
}Expand description
One category to add in the addCategories patch key of Space/set update
(JMAP Chat §Space/set update / manage_channels permission).
The server assigns the category’s ULID; the request never specifies an id.
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.name: &'a strCategory display name.
position: Option<u64>Position relative to other categories. None lets the server append.
channel_ids: Option<&'a [Id]>Initial member channel ids. None = empty category.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpaceAddCategoryInput<'a>
impl<'a> RefUnwindSafe for SpaceAddCategoryInput<'a>
impl<'a> Send for SpaceAddCategoryInput<'a>
impl<'a> Sync for SpaceAddCategoryInput<'a>
impl<'a> Unpin for SpaceAddCategoryInput<'a>
impl<'a> UnsafeUnpin for SpaceAddCategoryInput<'a>
impl<'a> UnwindSafe for SpaceAddCategoryInput<'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