#[non_exhaustive]pub struct UnknownChannel {
pub id: ChannelId,
pub kind: ChannelType,
pub guild_id: Option<GuildId>,
pub name: Option<CompactString>,
pub parent_id: Option<ChannelId>,
pub flags: ChannelFlags,
}Expand description
A channel of a ChannelType this version of the library does not know about. Only the
fields every channel has are kept.
discord.js counterpart: none (a channel type unknown to this version, kept as received).
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.
kind: ChannelTypeThe raw channel type.
guild_id: Option<GuildId>The guild, if any.
name: Option<CompactString>The channel’s name, if any.
parent_id: Option<ChannelId>The parent channel, if any.
flags: ChannelFlagsThe channel’s flags.
Trait Implementations§
Source§impl Clone for UnknownChannel
impl Clone for UnknownChannel
Source§impl Debug for UnknownChannel
impl Debug for UnknownChannel
impl Eq for UnknownChannel
Source§impl PartialEq for UnknownChannel
impl PartialEq for UnknownChannel
Source§impl Serialize for UnknownChannel
impl Serialize for UnknownChannel
impl StructuralPartialEq for UnknownChannel
Auto Trait Implementations§
impl Forget for UnknownChannel
impl Freeze for UnknownChannel
impl Move for UnknownChannel
impl RefUnwindSafe for UnknownChannel
impl Send for UnknownChannel
impl Sync for UnknownChannel
impl Unpin for UnknownChannel
impl UnsafeUnpin for UnknownChannel
impl UnwindSafe for UnknownChannel
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