pub struct GuildAuditLogEntry {
pub target_id: Option<String>,
pub changes: Option<Vec<GuildAuditLogChange>>,
pub user_id: Snowflake,
pub id: Snowflake,
pub action_type: GuildAuditLogEvent,
pub options: Option<GuildAuditEntryInfo>,
pub reason: Option<String>,
}Expand description
An entry contained in a guild’s audit log, which holds details about the audit log action.
Fields§
§target_id: Option<String>The snowflake ID of the affected entity.
changes: Option<Vec<GuildAuditLogChange>>The changes that were made to the target ID.
user_id: SnowflakeThe user who performaned the changes.
id: SnowflakeThe ID that this entry belongs to.
action_type: GuildAuditLogEventThe type of action which occured.
options: Option<GuildAuditEntryInfo>Additional options for certain action types.
reason: Option<String>The reason for this change.
Trait Implementations§
Source§impl Clone for GuildAuditLogEntry
impl Clone for GuildAuditLogEntry
Source§fn clone(&self) -> GuildAuditLogEntry
fn clone(&self) -> GuildAuditLogEntry
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 GuildAuditLogEntry
impl Debug for GuildAuditLogEntry
Source§impl<'de> Deserialize<'de> for GuildAuditLogEntry
impl<'de> Deserialize<'de> for GuildAuditLogEntry
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 GuildAuditLogEntry
impl RefUnwindSafe for GuildAuditLogEntry
impl Send for GuildAuditLogEntry
impl Sync for GuildAuditLogEntry
impl Unpin for GuildAuditLogEntry
impl UnwindSafe for GuildAuditLogEntry
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