pub struct AutoModerationActionMetadata {
pub channel_id: Option<Id<ChannelMarker>>,
pub custom_message: Option<String>,
pub duration_seconds: Option<u32>,
}
Expand description
Additional metadata needed during execution for a specific
AutoModerationActionType
.
Fields§
§channel_id: Option<Id<ChannelMarker>>
Channel to which user content should be logged.
custom_message: Option<String>
Additional explanation that will be shown to members whenever their message is blocked.
Maximum value length is 150 characters.
duration_seconds: Option<u32>
Timeout duration in seconds.
Maximum value is 2419200 seconds, or 4 weeks.
Trait Implementations§
source§impl Clone for AutoModerationActionMetadata
impl Clone for AutoModerationActionMetadata
source§fn clone(&self) -> AutoModerationActionMetadata
fn clone(&self) -> AutoModerationActionMetadata
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 AutoModerationActionMetadata
impl Debug for AutoModerationActionMetadata
source§impl<'de> Deserialize<'de> for AutoModerationActionMetadata
impl<'de> Deserialize<'de> for AutoModerationActionMetadata
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 AutoModerationActionMetadata
impl Hash for AutoModerationActionMetadata
source§impl PartialEq for AutoModerationActionMetadata
impl PartialEq for AutoModerationActionMetadata
source§fn eq(&self, other: &AutoModerationActionMetadata) -> bool
fn eq(&self, other: &AutoModerationActionMetadata) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for AutoModerationActionMetadata
impl StructuralPartialEq for AutoModerationActionMetadata
Auto Trait Implementations§
impl Freeze for AutoModerationActionMetadata
impl RefUnwindSafe for AutoModerationActionMetadata
impl Send for AutoModerationActionMetadata
impl Sync for AutoModerationActionMetadata
impl Unpin for AutoModerationActionMetadata
impl UnwindSafe for AutoModerationActionMetadata
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)