#[non_exhaustive]pub struct AuditLogs {
pub entries: Vec<AuditLogEntry>,
pub auto_moderation_rules: Vec<Rule>,
pub application_commands: Vec<Command>,
pub guild_scheduled_events: Vec<ScheduledEvent>,
pub integrations: Vec<PartialIntegration>,
pub threads: Vec<GuildChannel>,
pub users: HashMap<UserId, User>,
pub webhooks: HashMap<WebhookId, Webhook>,
}
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.entries: Vec<AuditLogEntry>
List of audit log entries, sorted from most to least recent.
auto_moderation_rules: Vec<Rule>
List of auto moderation rules referenced in the audit log.
application_commands: Vec<Command>
List of application commands referenced in the audit log.
guild_scheduled_events: Vec<ScheduledEvent>
List of guild scheduled events referenced in the audit log.
integrations: Vec<PartialIntegration>
List of partial integration objects.
threads: Vec<GuildChannel>
List of threads referenced in the audit log.
Threads referenced in THREAD_CREATE and THREAD_UPDATE events are included in the threads map since archived threads might not be kept in memory by clients.
users: HashMap<UserId, User>
List of users referenced in the audit log.
webhooks: HashMap<WebhookId, Webhook>
List of webhooks referenced in the audit log.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuditLogs
impl<'de> Deserialize<'de> for AuditLogs
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 AuditLogs
impl RefUnwindSafe for AuditLogs
impl Send for AuditLogs
impl Sync for AuditLogs
impl Unpin for AuditLogs
impl UnwindSafe for AuditLogs
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