pub enum AutoModerationEventType {
MessageSend,
MemberUpdate,
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.
MemberUpdate
When a member edits their profile.
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 for AutoModerationEventType
impl PartialEq for AutoModerationEventType
source§impl Serialize for AutoModerationEventType
impl Serialize for AutoModerationEventType
impl Copy for AutoModerationEventType
impl Eq for AutoModerationEventType
impl StructuralPartialEq for AutoModerationEventType
Auto Trait Implementations§
impl Freeze for AutoModerationEventType
impl RefUnwindSafe for AutoModerationEventType
impl Send for AutoModerationEventType
impl Sync for AutoModerationEventType
impl Unpin for AutoModerationEventType
impl UnwindSafe for AutoModerationEventType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)