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 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<'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
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
)