#[non_exhaustive]pub struct Options {
pub auto_moderation_rule_name: Option<String>,
pub auto_moderation_rule_trigger_type: Option<String>,
pub application_id: Option<ApplicationId>,
pub delete_member_days: Option<u64>,
pub members_removed: Option<u64>,
pub channel_id: Option<ChannelId>,
pub count: Option<u64>,
pub id: Option<GenericId>,
pub kind: Option<String>,
pub message_id: Option<MessageId>,
pub role_name: Option<String>,
pub status: Option<String>,
}
Expand description
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.auto_moderation_rule_name: Option<String>
Name of the Auto Moderation rule that was triggered.
auto_moderation_rule_trigger_type: Option<String>
Trigger type of the Auto Moderation rule that was triggered.
application_id: Option<ApplicationId>
ID of the app whose permissions were targeted.
delete_member_days: Option<u64>
Number of days after which inactive members were kicked.
members_removed: Option<u64>
Number of members removed by the prune
channel_id: Option<ChannelId>
Channel in which the messages were deleted
count: Option<u64>
Number of deleted messages.
id: Option<GenericId>
Id of the overwritten entity
kind: Option<String>
Type of overwritten entity (“member” or “role”).
message_id: Option<MessageId>
Message that was pinned or unpinned.
role_name: Option<String>
Name of the role if type is “role”
status: Option<String>
The status of a voice channel when set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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 Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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