pub struct AutoModTriggerMetadata {
pub keyword_filter: Vec<String>,
pub regex_patterns: Vec<String>,
pub presets: Vec<AutoModKeywordPresetType>,
pub allow_list: Vec<String>,
pub mention_total_limit: Option<u32>,
pub mention_raid_protection_enabled: bool,
}Expand description
Metadata for AutoMod triggers.
Fields§
§keyword_filter: Vec<String>Substrings which will be searched for in content.
regex_patterns: Vec<String>Regular expression patterns which will be matched against content.
presets: Vec<AutoModKeywordPresetType>The internally pre-defined wordsets which will be searched for.
allow_list: Vec<String>Substrings which should not trigger the rule.
mention_total_limit: Option<u32>Total number of unique role and user mentions allowed per message.
mention_raid_protection_enabled: boolWhether to automatically detect mention raids.
Trait Implementations§
Source§impl Clone for AutoModTriggerMetadata
impl Clone for AutoModTriggerMetadata
Source§fn clone(&self) -> AutoModTriggerMetadata
fn clone(&self) -> AutoModTriggerMetadata
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 Debug for AutoModTriggerMetadata
impl Debug for AutoModTriggerMetadata
Source§impl Default for AutoModTriggerMetadata
impl Default for AutoModTriggerMetadata
Source§fn default() -> AutoModTriggerMetadata
fn default() -> AutoModTriggerMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoModTriggerMetadata
impl<'de> Deserialize<'de> for AutoModTriggerMetadata
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
Auto Trait Implementations§
impl Freeze for AutoModTriggerMetadata
impl RefUnwindSafe for AutoModTriggerMetadata
impl Send for AutoModTriggerMetadata
impl Sync for AutoModTriggerMetadata
impl Unpin for AutoModTriggerMetadata
impl UnwindSafe for AutoModTriggerMetadata
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