Enum twitch_api2::pubsub::moderation::ModerationActionCommand[][src]

#[non_exhaustive]pub enum ModerationActionCommand {
    Delete,
    Timeout,
    Untimeout,
    Mod,
    Unmod,
    ModifiedAutomodProperties,
    Ban,
    Unban,
    AutomodRejected,
    AddPermittedTerm,
    DeletePermittedTerm,
    AddBlockedTerm,
    DeleteBlockedTerm,
    ApproveAutomodMessage,
    DeniedAutomodMessage,
    Raid,
    Slow,
    SlowOff,
    Followers,
    FollowersOff,
    Subscribers,
    SubscribersOff,
    EmoteOnly,
    EmoteOnlyOff,
    Clear,
    R9KBeta,
    R9KBetaOff,
    Vip,
    Unvip,
    Host,
    Unhost,
    ApproveUnbanRequest,
    DenyUnbanRequest,
}
This is supported on crate feature pubsub only.

A command

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

AddPermittedTerm

Automod permitted term added

DeletePermittedTerm

Automod permitted term removed

AddBlockedTerm

Automod blocked term added

DeleteBlockedTerm

Automod blocked term removed

ApproveAutomodMessage

Automod message approved

DeniedAutomodMessage

Automod message denied

Raid

Raid

Given when editor/broadcaster does /raid <channel>

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

Vip

User added as VIP

Unvip

User removed as VIP

Host

Channel host started

Unhost

Channel host removed

ApproveUnbanRequest

Unban Request Approved

DenyUnbanRequest

Unban Request Denied

Trait Implementations

impl Clone for ModerationActionCommand[src]

impl Debug for ModerationActionCommand[src]

impl<'de> Deserialize<'de> for ModerationActionCommand[src]

impl Display for ModerationActionCommand[src]

impl Eq for ModerationActionCommand[src]

impl PartialEq<ModerationActionCommand> for ModerationActionCommand[src]

impl Serialize for ModerationActionCommand[src]

impl StructuralEq for ModerationActionCommand[src]

impl StructuralPartialEq for ModerationActionCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]