[][src]Enum ttv_pubsub::moderation::ChatModeratorActionsReply

#[non_exhaustive]pub enum ChatModeratorActionsReply {
    ModerationAction {
        args: Vec<String>,
        created_by: String,
        created_by_user_id: String,
        from_automod: bool,
        moderation_action: ModerationActionCommand,
        msg_id: Option<String>,
        target_user_id: String,
        type_: ModerationType,
        // some fields omitted
    },
    ModeratorAdded {
        channel_id: String,
        target_user_id: String,
        moderation_action: ModerationActionCommand,
        target_user_login: String,
        created_by_user_id: String,
        created_by: String,
    },
}

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.
ModerationAction

A moderation action. moderation_action

Fields of ModerationAction

args: Vec<String>

Arguments for moderation_action

created_by: String

User that did moderation action

created_by_user_id: String

ID of user that did moderation action

from_automod: bool

Moderation action is triggered from automod

moderation_action: ModerationActionCommand

Type of action

msg_id: Option<String>

ID of message associated with moderation action

target_user_id: String

Target of moderation action

type_: ModerationType

Type of moderation

ModeratorAdded

A moderator was added. moderator_added

Notes

There is no moderator_removed message

Fields of ModeratorAdded

channel_id: String

ID of channel where moderator was added

target_user_id: String

ID of added moderator

moderation_action: ModerationActionCommand

Moderation actiom. Should be mod

target_user_login: String

Username of added moderator

created_by_user_id: String

ID of user that added moderator

created_by: String

Username of user that added moderator

Trait Implementations

impl Clone for ChatModeratorActionsReply[src]

impl Debug for ChatModeratorActionsReply[src]

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

impl Eq for ChatModeratorActionsReply[src]

impl PartialEq<ChatModeratorActionsReply> for ChatModeratorActionsReply[src]

impl Serialize for ChatModeratorActionsReply[src]

impl StructuralEq for ChatModeratorActionsReply[src]

impl StructuralPartialEq for ChatModeratorActionsReply[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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.