Enum serenity::model::channel::ChannelType [−][src]
#[non_exhaustive]
#[repr(u8)]
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
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
.
Category
An indicator that the channel is the channel of a ChannelCategory
.
News
An indicator that the channel is a NewsChannel
.
Note: NewsChannel
is serialized into a GuildChannel
Store
An indicator that the channel is a StoreChannel
Note: StoreChannel
is serialized into a GuildChannel
NewsThread
An indicator that the channel is a news thread GuildChannel
.
PublicThread
An indicator that the channel is a news thread GuildChannel
.
PrivateThread
An indicator that the channel is a news thread GuildChannel
.
Stage
An indicator that the channel is a stage GuildChannel
.
Unknown
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more