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
sourceimpl Clone for AutoModerationEventType
impl Clone for AutoModerationEventType
sourcefn clone(&self) -> AutoModerationEventType
fn clone(&self) -> AutoModerationEventType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AutoModerationEventType
impl Debug for AutoModerationEventType
sourceimpl<'de> Deserialize<'de> for AutoModerationEventType
impl<'de> Deserialize<'de> for AutoModerationEventType
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<AutoModerationEventType> for u8
impl From<AutoModerationEventType> for u8
sourcefn from(value: AutoModerationEventType) -> Self
fn from(value: AutoModerationEventType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for AutoModerationEventType
impl From<u8> for AutoModerationEventType
sourceimpl Hash for AutoModerationEventType
impl Hash for AutoModerationEventType
sourceimpl PartialEq<AutoModerationEventType> for AutoModerationEventType
impl PartialEq<AutoModerationEventType> for AutoModerationEventType
sourcefn eq(&self, other: &AutoModerationEventType) -> bool
fn eq(&self, other: &AutoModerationEventType) -> bool
sourceimpl Serialize for AutoModerationEventType
impl Serialize for AutoModerationEventType
impl Copy for AutoModerationEventType
impl Eq for AutoModerationEventType
impl StructuralEq for AutoModerationEventType
impl StructuralPartialEq for AutoModerationEventType
Auto Trait Implementations
impl RefUnwindSafe for AutoModerationEventType
impl Send for AutoModerationEventType
impl Sync for AutoModerationEventType
impl Unpin for AutoModerationEventType
impl UnwindSafe for AutoModerationEventType
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
Mutably borrows from an owned value. Read more