pub enum AutoModerationEventType {
MessageSend,
Unknown(u8),
}Expand description
Indicates in what event context a rule should be checked.
Variants§
MessageSend
When a member sends or edits a message in a guild.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations§
source§impl Clone for AutoModerationEventType
impl Clone for AutoModerationEventType
source§fn clone(&self) -> AutoModerationEventType
fn clone(&self) -> AutoModerationEventType
Returns a copy 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 AutoModerationEventType
impl Debug for AutoModerationEventType
source§impl<'de> Deserialize<'de> for AutoModerationEventType
impl<'de> Deserialize<'de> for AutoModerationEventType
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 From<AutoModerationEventType> for u8
impl From<AutoModerationEventType> for u8
source§fn from(value: AutoModerationEventType) -> Self
fn from(value: AutoModerationEventType) -> Self
Converts to this type from the input type.
source§impl From<u8> for AutoModerationEventType
impl From<u8> for AutoModerationEventType
source§impl Hash for AutoModerationEventType
impl Hash for AutoModerationEventType
source§impl PartialEq<AutoModerationEventType> for AutoModerationEventType
impl PartialEq<AutoModerationEventType> for AutoModerationEventType
source§fn eq(&self, other: &AutoModerationEventType) -> bool
fn eq(&self, other: &AutoModerationEventType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.