1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use crate::{ guild::audit_log::{AuditLogChange, AuditLogEvent, AuditLogOptionalEntryInfo}, id::{AuditLogEntryId, UserId}, }; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct AuditLogEntry { pub action_type: AuditLogEvent, #[serde(skip_serializing_if = "Option::is_none")] pub changes: Option<Vec<AuditLogChange>>, pub id: AuditLogEntryId, #[serde(skip_serializing_if = "Option::is_none")] pub options: Option<AuditLogOptionalEntryInfo>, #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, pub target_id: Option<String>, pub user_id: UserId, }