#[repr(u8)]pub enum AutoModerationRuleKeywordPresetType {
Profanity = 1,
SexualContent = 2,
Slurs = 3,
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for AutoModerationRuleKeywordPresetType
impl Clone for AutoModerationRuleKeywordPresetType
Source§fn clone(&self) -> AutoModerationRuleKeywordPresetType
fn clone(&self) -> AutoModerationRuleKeywordPresetType
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 Default for AutoModerationRuleKeywordPresetType
impl Default for AutoModerationRuleKeywordPresetType
Source§fn default() -> AutoModerationRuleKeywordPresetType
fn default() -> AutoModerationRuleKeywordPresetType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoModerationRuleKeywordPresetType
impl<'de> Deserialize<'de> for AutoModerationRuleKeywordPresetType
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 Ord for AutoModerationRuleKeywordPresetType
impl Ord for AutoModerationRuleKeywordPresetType
Source§fn cmp(&self, other: &AutoModerationRuleKeywordPresetType) -> Ordering
fn cmp(&self, other: &AutoModerationRuleKeywordPresetType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AutoModerationRuleKeywordPresetType
impl PartialEq for AutoModerationRuleKeywordPresetType
Source§fn eq(&self, other: &AutoModerationRuleKeywordPresetType) -> bool
fn eq(&self, other: &AutoModerationRuleKeywordPresetType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AutoModerationRuleKeywordPresetType
impl PartialOrd for AutoModerationRuleKeywordPresetType
impl Copy for AutoModerationRuleKeywordPresetType
impl Eq for AutoModerationRuleKeywordPresetType
impl StructuralPartialEq for AutoModerationRuleKeywordPresetType
Auto Trait Implementations§
impl Freeze for AutoModerationRuleKeywordPresetType
impl RefUnwindSafe for AutoModerationRuleKeywordPresetType
impl Send for AutoModerationRuleKeywordPresetType
impl Sync for AutoModerationRuleKeywordPresetType
impl Unpin for AutoModerationRuleKeywordPresetType
impl UnwindSafe for AutoModerationRuleKeywordPresetType
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.