pub enum ChannelKind {
Category,
Text,
Announcement,
Forum,
Voice,
Stage,
Dm,
}Expand description
The kind of a channel (permissions §1.3, specification §8.2).
Variants§
Category
Groups channels; its overrides apply to synced children.
Text
Text chat.
Announcement
Text chat where @everyone cannot post by default.
Forum
Reserved: forum posts (future).
Voice
Reserved: voice (future); has text chat.
Stage
Reserved: stage (future); has text chat.
Dm
A direct-message channel between one bot and one member (§8.15); only its two participants can see it, whatever their roles.
Trait Implementations§
Source§impl Clone for ChannelKind
impl Clone for ChannelKind
Source§fn clone(&self) -> ChannelKind
fn clone(&self) -> ChannelKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChannelKind
Source§impl Debug for ChannelKind
impl Debug for ChannelKind
Source§impl<'de> Deserialize<'de> for ChannelKind
impl<'de> Deserialize<'de> for ChannelKind
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
impl Eq for ChannelKind
Source§impl Hash for ChannelKind
impl Hash for ChannelKind
Source§impl PartialEq for ChannelKind
impl PartialEq for ChannelKind
Source§impl Serialize for ChannelKind
impl Serialize for ChannelKind
impl StructuralPartialEq for ChannelKind
Auto Trait Implementations§
impl Freeze for ChannelKind
impl RefUnwindSafe for ChannelKind
impl Send for ChannelKind
impl Sync for ChannelKind
impl Unpin for ChannelKind
impl UnsafeUnpin for ChannelKind
impl UnwindSafe for ChannelKind
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