#[non_exhaustive]pub struct SpaceAddChannelInput<'a> {
pub name: &'a str,
pub category_id: Option<&'a Id>,
pub position: Option<u64>,
pub topic: Option<&'a str>,
}Expand description
One channel to add in the addChannels patch key of Space/set update.
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 strChannel display name.
category_id: Option<&'a Id>Optional parent category id. None places the channel in uncategorizedChannelIds.
position: Option<u64>Optional position within the category.
topic: Option<&'a str>Optional channel topic.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpaceAddChannelInput<'a>
impl<'a> RefUnwindSafe for SpaceAddChannelInput<'a>
impl<'a> Send for SpaceAddChannelInput<'a>
impl<'a> Sync for SpaceAddChannelInput<'a>
impl<'a> Unpin for SpaceAddChannelInput<'a>
impl<'a> UnsafeUnpin for SpaceAddChannelInput<'a>
impl<'a> UnwindSafe for SpaceAddChannelInput<'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