#[non_exhaustive]
pub enum ModerationActionCommand {
Show 30 variants
Delete,
Timeout,
Untimeout,
Mod,
Unmod,
ModifiedAutomodProperties,
Ban,
Unban,
AutomodRejected,
ApproveAutomodMessage,
DeniedAutomodMessage,
Raid,
Unraid,
Slow,
SlowOff,
Followers,
FollowersOff,
Subscribers,
SubscribersOff,
EmoteOnly,
EmoteOnlyOff,
Clear,
R9KBeta,
R9KBetaOff,
Unvip,
Host,
Unhost,
ApproveUnbanRequest,
DenyUnbanRequest,
DeleteNotification,
}
pubsub
only.Expand description
A command
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Delete
Delete
Given when a message is deleted with /delete <msg-id>
Timeout
Timeout
Given when a user is timed-out with /timeout <user> <time> <reason>
Untimeout
Untimeout
Given when a user is unbanned while under a timeout /untimeout <user>
or /unban <user>
Mod
Mod
Given when a user is added as a moderator. /mod <user>
.
See ChatModeratorActionsReply::ModeratorAdded where this is given
Unmod
Unmod
Given when a user is removed as a moderator, /unmod <user>
ModifiedAutomodProperties
Modified automod properties
Given when automod config is changed. I.e filtering changed etc
Ban
Ban
Given when a user is banned with /timeout <user> <reason>
Unban
Unban
Given when a user is unbanned with /unban <user>
or /untimeout <user>
AutomodRejected
Automod message rejected
ApproveAutomodMessage
Automod message approved
DeniedAutomodMessage
Automod message denied
Raid
Raid
Given when editor/broadcaster does /raid <channel>
Unraid
Unraid
Given when editor/broadcaster does /unraid
Slow
Slow-mode chat enabled
SlowOff
Slow-mode chat disabled
Followers
Followers-only chat enabled
FollowersOff
Followers-only chat disabled
Subscribers
Subscriber-only chat enabled
SubscribersOff
Subscriber-only chat disabled
EmoteOnly
Emote-only chat enabled
EmoteOnlyOff
Emote-only chat disabled
Clear
Chat cleared for all viewers
R9KBeta
Unique chat enabled
R9KBetaOff
Unique chat disabled
Unvip
User removed as VIP
Host
Channel host started
Unhost
Channel host removed
ApproveUnbanRequest
Unban Request Approved
DenyUnbanRequest
Unban Request Denied
DeleteNotification
Users own message was deleted.
Trait Implementations
sourceimpl Clone for ModerationActionCommand
impl Clone for ModerationActionCommand
sourcefn clone(&self) -> ModerationActionCommand
fn clone(&self) -> ModerationActionCommand
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for ModerationActionCommand
impl Debug for ModerationActionCommand
sourceimpl<'de> Deserialize<'de> for ModerationActionCommand
impl<'de> Deserialize<'de> for ModerationActionCommand
sourcefn 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>,
sourceimpl Display for ModerationActionCommand
impl Display for ModerationActionCommand
sourceimpl PartialEq<ModerationActionCommand> for ModerationActionCommand
impl PartialEq<ModerationActionCommand> for ModerationActionCommand
sourcefn eq(&self, other: &ModerationActionCommand) -> bool
fn eq(&self, other: &ModerationActionCommand) -> bool
sourceimpl Serialize for ModerationActionCommand
impl Serialize for ModerationActionCommand
impl Eq for ModerationActionCommand
impl StructuralEq for ModerationActionCommand
impl StructuralPartialEq for ModerationActionCommand
Auto Trait Implementations
impl RefUnwindSafe for ModerationActionCommand
impl Send for ModerationActionCommand
impl Sync for ModerationActionCommand
impl Unpin for ModerationActionCommand
impl UnwindSafe for ModerationActionCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.