pub enum AutoModerationTriggerType {
Keyword,
HarmfulLink,
Spam,
KeywordPreset,
Unknown(u8),
}Expand description
Characterizes the type of content which can trigger the rule.
Variants
Keyword
Check if content contains words from a user defined list of keywords.
Maximum of 3 per guild.
HarmfulLink
Check if content contains any harmful links.
Currently unreleased. Maximum of 1 per guild.
Spam
Check if content represents generic spam.
Currently unreleased. Maximum of 1 per guild.
KeywordPreset
Check if content contains words from internal pre-defined wordsets.
Maximum of 1 per guild.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations
sourceimpl Clone for AutoModerationTriggerType
impl Clone for AutoModerationTriggerType
sourcefn clone(&self) -> AutoModerationTriggerType
fn clone(&self) -> AutoModerationTriggerType
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 AutoModerationTriggerType
impl Debug for AutoModerationTriggerType
sourceimpl<'de> Deserialize<'de> for AutoModerationTriggerType
impl<'de> Deserialize<'de> for AutoModerationTriggerType
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<AutoModerationTriggerType> for u8
impl From<AutoModerationTriggerType> for u8
sourcefn from(value: AutoModerationTriggerType) -> Self
fn from(value: AutoModerationTriggerType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for AutoModerationTriggerType
impl From<u8> for AutoModerationTriggerType
sourceimpl Hash for AutoModerationTriggerType
impl Hash for AutoModerationTriggerType
sourceimpl PartialEq<AutoModerationTriggerType> for AutoModerationTriggerType
impl PartialEq<AutoModerationTriggerType> for AutoModerationTriggerType
sourcefn eq(&self, other: &AutoModerationTriggerType) -> bool
fn eq(&self, other: &AutoModerationTriggerType) -> bool
sourceimpl Serialize for AutoModerationTriggerType
impl Serialize for AutoModerationTriggerType
impl Copy for AutoModerationTriggerType
impl Eq for AutoModerationTriggerType
impl StructuralEq for AutoModerationTriggerType
impl StructuralPartialEq for AutoModerationTriggerType
Auto Trait Implementations
impl RefUnwindSafe for AutoModerationTriggerType
impl Send for AutoModerationTriggerType
impl Sync for AutoModerationTriggerType
impl Unpin for AutoModerationTriggerType
impl UnwindSafe for AutoModerationTriggerType
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