Struct twilight_model::guild::auto_moderation::AutoModerationAction
source · pub struct AutoModerationAction {
pub kind: AutoModerationActionType,
pub metadata: Option<AutoModerationActionMetadata>,
}
Expand description
An action which will execute whenever a rule is triggered.
Fields§
§kind: AutoModerationActionType
Type of action.
metadata: Option<AutoModerationActionMetadata>
Additional metadata needed during execution for this specific action type.
Trait Implementations§
source§impl Clone for AutoModerationAction
impl Clone for AutoModerationAction
source§fn clone(&self) -> AutoModerationAction
fn clone(&self) -> AutoModerationAction
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 Debug for AutoModerationAction
impl Debug for AutoModerationAction
source§impl<'de> Deserialize<'de> for AutoModerationAction
impl<'de> Deserialize<'de> for AutoModerationAction
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 Hash for AutoModerationAction
impl Hash for AutoModerationAction
source§impl PartialEq<AutoModerationAction> for AutoModerationAction
impl PartialEq<AutoModerationAction> for AutoModerationAction
source§fn eq(&self, other: &AutoModerationAction) -> bool
fn eq(&self, other: &AutoModerationAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.