pub enum ChannelMode {
Moderated,
InviteOnly,
NoExternal,
TopicProtected,
Secret,
Private,
KeyRotation,
History,
Anonymous,
RateLimit,
}Expand description
Channel operational modes
Variantsยง
Moderated
Moderated channel (only voiced+ can speak)
InviteOnly
Invite-only channel
NoExternal
No external messages
TopicProtected
Topic protection (only ops can change)
Secret
Secret channel (hidden from lists)
Private
Private channel (invite required)
KeyRotation
Key rotation enabled
History
Message history enabled
Anonymous
Anonymous mode (hide real identities)
RateLimit
Rate limiting enabled
Trait Implementationsยง
Sourceยงimpl Clone for ChannelMode
impl Clone for ChannelMode
Sourceยงfn clone(&self) -> ChannelMode
fn clone(&self) -> ChannelMode
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 ChannelMode
impl Debug for ChannelMode
Sourceยงimpl<'de> Deserialize<'de> for ChannelMode
impl<'de> Deserialize<'de> for ChannelMode
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 ChannelMode
impl Hash for ChannelMode
Sourceยงimpl PartialEq for ChannelMode
impl PartialEq for ChannelMode
Sourceยงimpl Serialize for ChannelMode
impl Serialize for ChannelMode
impl Eq for ChannelMode
impl StructuralPartialEq for ChannelMode
Auto Trait Implementationsยง
impl Freeze for ChannelMode
impl RefUnwindSafe for ChannelMode
impl Send for ChannelMode
impl Sync for ChannelMode
impl Unpin for ChannelMode
impl UnsafeUnpin for ChannelMode
impl UnwindSafe for ChannelMode
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