#[non_exhaustive]pub struct DirectoryChannel {
pub id: ChannelId,
pub guild_id: Option<GuildId>,
pub name: CompactString,
pub position: i32,
pub permission_overwrites: Vec<Overwrite>,
pub parent_id: Option<ChannelId>,
pub flags: ChannelFlags,
}Expand description
The directory channel of a Student Hub.
discord.js counterpart: DirectoryChannel.
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 channel’s ID.
guild_id: Option<GuildId>The guild; None inside GUILD_CREATE.
name: CompactStringThe channel’s name.
position: i32The sorting position.
permission_overwrites: Vec<Overwrite>Explicit permissions for roles and members.
parent_id: Option<ChannelId>The parent category.
flags: ChannelFlagsThe channel’s flags.
Trait Implementations§
Source§impl Clone for DirectoryChannel
impl Clone for DirectoryChannel
Source§impl Debug for DirectoryChannel
impl Debug for DirectoryChannel
impl Eq for DirectoryChannel
Source§impl PartialEq for DirectoryChannel
impl PartialEq for DirectoryChannel
Source§impl Serialize for DirectoryChannel
impl Serialize for DirectoryChannel
impl StructuralPartialEq for DirectoryChannel
Auto Trait Implementations§
impl Freeze for DirectoryChannel
impl RefUnwindSafe for DirectoryChannel
impl Send for DirectoryChannel
impl Sync for DirectoryChannel
impl Unpin for DirectoryChannel
impl UnsafeUnpin for DirectoryChannel
impl UnwindSafe for DirectoryChannel
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