#[non_exhaustive]pub enum Action {
Show 18 variants
GuildUpdate,
Channel(ChannelAction),
ChannelOverwrite(ChannelOverwriteAction),
Member(MemberAction),
Role(RoleAction),
Invite(InviteAction),
Webhook(WebhookAction),
Emoji(EmojiAction),
Message(MessageAction),
Integration(IntegrationAction),
StageInstance(StageInstanceAction),
Sticker(StickerAction),
ScheduledEvent(ScheduledEventAction),
Thread(ThreadAction),
AutoMod(AutoModAction),
CreatorMonetization(CreatorMonetizationAction),
VoiceChannelStatus(VoiceChannelStatusAction),
Unknown(u8),
}
Expand description
Determines the action that was done on a target.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GuildUpdate
Channel(ChannelAction)
ChannelOverwrite(ChannelOverwriteAction)
Member(MemberAction)
Role(RoleAction)
Invite(InviteAction)
Webhook(WebhookAction)
Emoji(EmojiAction)
Message(MessageAction)
Integration(IntegrationAction)
StageInstance(StageInstanceAction)
Sticker(StickerAction)
ScheduledEvent(ScheduledEventAction)
Thread(ThreadAction)
AutoMod(AutoModAction)
CreatorMonetization(CreatorMonetizationAction)
VoiceChannelStatus(VoiceChannelStatusAction)
Unknown(u8)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> StdResult<Self, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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