#[non_exhaustive]pub struct AuditLog {
pub application_commands: Vec<ApplicationCommand>,
pub audit_log_entries: Vec<AuditLogEntry>,
pub auto_moderation_rules: Vec<Rule>,
pub guild_scheduled_events: Vec<GuildScheduledEvent>,
pub integrations: Vec<PartialIntegration>,
pub threads: Vec<Channel>,
pub users: Vec<User>,
pub webhooks: Vec<Webhook>,
}Expand description
A guild’s audit log: entries, most recent first, and the objects they refer to.
Requires the VIEW_AUDIT_LOG permission.
discord.js counterpart: GuildAuditLogs.
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.application_commands: Vec<ApplicationCommand>The application commands referred to by the entries.
audit_log_entries: Vec<AuditLogEntry>The entries, from most to least recent.
auto_moderation_rules: Vec<Rule>The auto moderation rules referred to by the entries.
guild_scheduled_events: Vec<GuildScheduledEvent>The scheduled events referred to by the entries.
integrations: Vec<PartialIntegration>The integrations referred to by the entries (partial objects).
threads: Vec<Channel>The threads referred to by the entries (archived threads may not be cached elsewhere).
users: Vec<User>The users referred to by the entries.
webhooks: Vec<Webhook>The webhooks referred to by the entries.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuditLog
impl<'de> Deserialize<'de> for AuditLog
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
impl StructuralPartialEq for AuditLog
Auto Trait Implementations§
impl Forget for AuditLog
impl Freeze for AuditLog
impl Move for AuditLog
impl RefUnwindSafe for AuditLog
impl Send for AuditLog
impl Sync for AuditLog
impl Unpin for AuditLog
impl UnsafeUnpin for AuditLog
impl UnwindSafe for AuditLog
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