pub struct AutoModActionMetadata {
pub channel_id: Option<Snowflake>,
pub duration_seconds: Option<u64>,
pub custom_message: Option<String>,
}Expand description
Metadata for AutoMod actions.
Fields§
§channel_id: Option<Snowflake>Channel to which user content should be logged.
duration_seconds: Option<u64>Timeout duration in seconds.
custom_message: Option<String>Additional explanation that will be shown to members.
Trait Implementations§
Source§impl Clone for AutoModActionMetadata
impl Clone for AutoModActionMetadata
Source§fn clone(&self) -> AutoModActionMetadata
fn clone(&self) -> AutoModActionMetadata
Returns a duplicate 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 AutoModActionMetadata
impl Debug for AutoModActionMetadata
Source§impl Default for AutoModActionMetadata
impl Default for AutoModActionMetadata
Source§fn default() -> AutoModActionMetadata
fn default() -> AutoModActionMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoModActionMetadata
impl<'de> Deserialize<'de> for AutoModActionMetadata
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
Auto Trait Implementations§
impl Freeze for AutoModActionMetadata
impl RefUnwindSafe for AutoModActionMetadata
impl Send for AutoModActionMetadata
impl Sync for AutoModActionMetadata
impl Unpin for AutoModActionMetadata
impl UnwindSafe for AutoModActionMetadata
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