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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more