#[non_exhaustive]pub struct ActionMetadata {
pub channel_id: Option<ChannelId>,
pub duration_seconds: Option<u32>,
pub custom_message: Option<CompactString>,
}Expand description
discord.js counterpart: AutoModerationActionMetadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel_id: Option<ChannelId>Where SendAlertMessage logs the content.
duration_seconds: Option<u32>How long Timeout times the member out, in seconds (up to 2 419 200, four weeks).
custom_message: Option<CompactString>The explanation BlockMessage shows to the member (up to 150 characters).
Trait Implementations§
Source§impl Clone for ActionMetadata
impl Clone for ActionMetadata
Source§impl Debug for ActionMetadata
impl Debug for ActionMetadata
Source§impl Default for ActionMetadata
impl Default for ActionMetadata
Source§impl<'de> Deserialize<'de> for ActionMetadata
impl<'de> Deserialize<'de> for ActionMetadata
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
impl Eq for ActionMetadata
Source§impl Hash for ActionMetadata
impl Hash for ActionMetadata
Source§impl PartialEq for ActionMetadata
impl PartialEq for ActionMetadata
Source§impl Serialize for ActionMetadata
impl Serialize for ActionMetadata
impl StructuralPartialEq for ActionMetadata
Auto Trait Implementations§
impl Forget for ActionMetadata
impl Freeze for ActionMetadata
impl Move for ActionMetadata
impl RefUnwindSafe for ActionMetadata
impl Send for ActionMetadata
impl Sync for ActionMetadata
impl Unpin for ActionMetadata
impl UnsafeUnpin for ActionMetadata
impl UnwindSafe for ActionMetadata
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