pub struct GuildAuditLogEntryCreate {
pub id: Snowflake,
pub guild_id: Option<Snowflake>,
pub action_type: Option<u64>,
pub user_id: Option<Snowflake>,
pub target_id: Option<Snowflake>,
pub reason: Option<String>,
pub changes: Option<Vec<AuditLogChange>>,
pub options: Option<Value>,
}Expand description
Audit log entry from the gateway.
Fields§
§id: Snowflake§guild_id: Option<Snowflake>§action_type: Option<u64>§user_id: Option<Snowflake>§target_id: Option<Snowflake>§reason: Option<String>§changes: Option<Vec<AuditLogChange>>§options: Option<Value>Extra context depending on the action e.g. channel name/type for channel creates.
Trait Implementations§
Source§impl Clone for GuildAuditLogEntryCreate
impl Clone for GuildAuditLogEntryCreate
Source§fn clone(&self) -> GuildAuditLogEntryCreate
fn clone(&self) -> GuildAuditLogEntryCreate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GuildAuditLogEntryCreate
impl Debug for GuildAuditLogEntryCreate
Source§impl<'de> Deserialize<'de> for GuildAuditLogEntryCreate
impl<'de> Deserialize<'de> for GuildAuditLogEntryCreate
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 GuildAuditLogEntryCreate
impl RefUnwindSafe for GuildAuditLogEntryCreate
impl Send for GuildAuditLogEntryCreate
impl Sync for GuildAuditLogEntryCreate
impl Unpin for GuildAuditLogEntryCreate
impl UnsafeUnpin for GuildAuditLogEntryCreate
impl UnwindSafe for GuildAuditLogEntryCreate
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