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