Struct twilight_model::gateway::payload::incoming::AutoModerationRuleCreate
source · pub struct AutoModerationRuleCreate(pub AutoModerationRule);
Expand description
Auto moderation rule has been created.
Requires Permissions::MANAGE_GUILD
.
Tuple Fields§
§0: AutoModerationRule
Trait Implementations§
source§impl Clone for AutoModerationRuleCreate
impl Clone for AutoModerationRuleCreate
source§fn clone(&self) -> AutoModerationRuleCreate
fn clone(&self) -> AutoModerationRuleCreate
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 AutoModerationRuleCreate
impl Debug for AutoModerationRuleCreate
source§impl Deref for AutoModerationRuleCreate
impl Deref for AutoModerationRuleCreate
source§impl DerefMut for AutoModerationRuleCreate
impl DerefMut for AutoModerationRuleCreate
source§impl<'de> Deserialize<'de> for AutoModerationRuleCreate
impl<'de> Deserialize<'de> for AutoModerationRuleCreate
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 AutoModerationRuleCreate
impl Hash for AutoModerationRuleCreate
source§impl PartialEq<AutoModerationRuleCreate> for AutoModerationRuleCreate
impl PartialEq<AutoModerationRuleCreate> for AutoModerationRuleCreate
source§fn eq(&self, other: &AutoModerationRuleCreate) -> bool
fn eq(&self, other: &AutoModerationRuleCreate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.