#[non_exhaustive]pub enum ChannelType {
Show 13 variants
Text,
Private,
Voice,
GroupDm,
Category,
News,
NewsThread,
PublicThread,
PrivateThread,
Stage,
Directory,
Forum,
Unknown(u8),
}
Expand description
A representation of a type of channel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Text
An indicator that the channel is a text GuildChannel
.
Private
An indicator that the channel is a PrivateChannel
.
Voice
An indicator that the channel is a voice GuildChannel
.
GroupDm
An indicator that the channel is a group DM.
Category
An indicator that the channel is a channel category.
News
An indicator that the channel is a NewsChannel
.
Note: NewsChannel
is serialized into a GuildChannel
NewsThread
An indicator that the channel is a news thread GuildChannel
.
PublicThread
An indicator that the channel is a public thread GuildChannel
.
PrivateThread
An indicator that the channel is a private thread GuildChannel
.
Stage
An indicator that the channel is a stage GuildChannel
.
Directory
An indicator that the channel is a directory GuildChannel
in a hub.
Forum
An indicator that the channel is a forum GuildChannel
.
Unknown(u8)
Variant value is unknown.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelType
impl Clone for ChannelType
Source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChannelType
impl Debug for ChannelType
Source§impl Default for ChannelType
impl Default for ChannelType
Source§fn default() -> ChannelType
fn default() -> 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>,
Source§impl From<ChannelType> for u8
impl From<ChannelType> for u8
Source§fn from(value: ChannelType) -> Self
fn from(value: ChannelType) -> Self
Source§impl From<u8> for ChannelType
impl From<u8> for ChannelType
Source§impl Hash for ChannelType
impl Hash for ChannelType
Source§impl Ord for ChannelType
impl Ord for ChannelType
Source§fn cmp(&self, other: &ChannelType) -> Ordering
fn cmp(&self, other: &ChannelType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
Source§impl PartialOrd for ChannelType
impl PartialOrd 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 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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
key
and return true
if they are equal.