#[repr(u8)]pub enum ChannelType {
Show 13 variants
GuildText = 0,
DM = 1,
GuildVoice = 2,
GroupDM = 3,
GuildCategory = 4,
GuildAnnouncement = 5,
AnnouncementThread = 10,
PublicThread = 11,
PrivateThread = 12,
GuildStageVoice = 13,
GuildDirectory = 14,
GuildForum = 15,
GuildMedia = 16,
}Expand description
Represents a Discord channel (text, voice, DM, etc.)
Variants§
GuildText = 0
DM = 1
GuildVoice = 2
GroupDM = 3
GuildCategory = 4
GuildAnnouncement = 5
AnnouncementThread = 10
PublicThread = 11
PrivateThread = 12
GuildStageVoice = 13
GuildDirectory = 14
GuildForum = 15
GuildMedia = 16
Trait Implementations§
Source§impl Clone for ChannelType
impl Clone for ChannelType
Source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelType
impl Debug for ChannelType
Source§impl<'de> Deserialize<'de> for ChannelType
impl<'de> Deserialize<'de> for ChannelType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ChannelType
impl Hash for ChannelType
Source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
Source§impl Serialize for ChannelType
impl Serialize for ChannelType
impl Copy for ChannelType
impl Eq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Freeze for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnsafeUnpin for ChannelType
impl UnwindSafe for ChannelType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.