#[non_exhaustive]pub struct CategoryChannel {
pub id: ChannelId,
pub guild_id: Option<GuildId>,
pub name: CompactString,
pub position: i32,
pub permission_overwrites: Vec<Overwrite>,
pub nsfw: bool,
pub flags: ChannelFlags,
}Expand description
A category that organizes channels.
discord.js counterpart: CategoryChannel.
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: ChannelIdThe category’s ID.
guild_id: Option<GuildId>The guild; None inside GUILD_CREATE.
name: CompactStringThe category’s name.
position: i32The sorting position.
permission_overwrites: Vec<Overwrite>Explicit permissions, synced onto channels that follow the category.
nsfw: boolWhether the category is age-restricted.
flags: ChannelFlagsThe category’s flags.
Trait Implementations§
Source§impl Clone for CategoryChannel
impl Clone for CategoryChannel
Source§impl Debug for CategoryChannel
impl Debug for CategoryChannel
impl Eq for CategoryChannel
Source§impl PartialEq for CategoryChannel
impl PartialEq for CategoryChannel
Source§impl Serialize for CategoryChannel
impl Serialize for CategoryChannel
impl StructuralPartialEq for CategoryChannel
Auto Trait Implementations§
impl Forget for CategoryChannel
impl Freeze for CategoryChannel
impl Move for CategoryChannel
impl RefUnwindSafe for CategoryChannel
impl Send for CategoryChannel
impl Sync for CategoryChannel
impl Unpin for CategoryChannel
impl UnsafeUnpin for CategoryChannel
impl UnwindSafe for CategoryChannel
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