Enum serenity::model::channel::ChannelType [−][src]
#[non_exhaustive] pub enum ChannelType { Text, Private, Voice, Category, News, Store, NewsThread, PublicThread, PrivateThread, Stage, Unknown, }
Expand description
A representation of a type of channel.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
An indicator that the channel is a text GuildChannel
.
An indicator that the channel is a PrivateChannel
.
An indicator that the channel is a voice GuildChannel
.
An indicator that the channel is the channel of a ChannelCategory
.
An indicator that the channel is a NewsChannel
.
Note: NewsChannel
is serialized into a GuildChannel
An indicator that the channel is a StoreChannel
Note: StoreChannel
is serialized into a GuildChannel
An indicator that the channel is a news thread GuildChannel
.
An indicator that the channel is a news thread GuildChannel
.
An indicator that the channel is a news thread GuildChannel
.
An indicator that the channel is a stage GuildChannel
.
An indicator that the channel is of unknown type.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self