pub struct AutoModerationRuleCreate(pub Rule);Expand description
The data of the Auto Moderation Rule Create
dispatch event (requires MANAGE_GUILD).
discord.js counterpart: the AutoModerationRuleCreate event.
Dereferences to the contained Rule.
Tuple Fields§
§0: RuleTrait Implementations§
Source§impl Clone for AutoModerationRuleCreate
impl Clone for AutoModerationRuleCreate
Source§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 From<AutoModerationRuleCreate> for Rule
impl From<AutoModerationRuleCreate> for Rule
Source§fn from(event: AutoModerationRuleCreate) -> Self
fn from(event: AutoModerationRuleCreate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AutoModerationRuleCreate
impl PartialEq for AutoModerationRuleCreate
Source§impl Serialize for AutoModerationRuleCreate
impl Serialize for AutoModerationRuleCreate
impl StructuralPartialEq for AutoModerationRuleCreate
Auto Trait Implementations§
impl Freeze for AutoModerationRuleCreate
impl RefUnwindSafe for AutoModerationRuleCreate
impl Send for AutoModerationRuleCreate
impl Sync for AutoModerationRuleCreate
impl Unpin for AutoModerationRuleCreate
impl UnsafeUnpin for AutoModerationRuleCreate
impl UnwindSafe for AutoModerationRuleCreate
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