pub enum AutoModerationKeywordPresetType {
    Profanity,
    SexualContent,
    Slurs,
    Unknown(u8),
}Expand description
Internally pre-defined wordsets which will be searched for in content.
Variants§
Profanity
Words that may be considered forms of swearing or cursing.
SexualContent
Words that refer to sexually explicit behavior or activity.
Slurs
Personal insults or words that may be considered hate speech.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations§
Source§impl Clone for AutoModerationKeywordPresetType
 
impl Clone for AutoModerationKeywordPresetType
Source§fn clone(&self) -> AutoModerationKeywordPresetType
 
fn clone(&self) -> AutoModerationKeywordPresetType
Returns a duplicate 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<'de> Deserialize<'de> for AutoModerationKeywordPresetType
 
impl<'de> Deserialize<'de> for AutoModerationKeywordPresetType
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<AutoModerationKeywordPresetType> for u8
 
impl From<AutoModerationKeywordPresetType> for u8
Source§fn from(value: AutoModerationKeywordPresetType) -> Self
 
fn from(value: AutoModerationKeywordPresetType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AutoModerationKeywordPresetType
 
impl From<u8> for AutoModerationKeywordPresetType
Source§impl PartialEq for AutoModerationKeywordPresetType
 
impl PartialEq for AutoModerationKeywordPresetType
Source§fn eq(&self, other: &AutoModerationKeywordPresetType) -> bool
 
fn eq(&self, other: &AutoModerationKeywordPresetType) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl Copy for AutoModerationKeywordPresetType
impl Eq for AutoModerationKeywordPresetType
impl StructuralPartialEq for AutoModerationKeywordPresetType
Auto Trait Implementations§
impl Freeze for AutoModerationKeywordPresetType
impl RefUnwindSafe for AutoModerationKeywordPresetType
impl Send for AutoModerationKeywordPresetType
impl Sync for AutoModerationKeywordPresetType
impl Unpin for AutoModerationKeywordPresetType
impl UnwindSafe for AutoModerationKeywordPresetType
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