Struct twilight_model::guild::audit_log::AuditLogEntry [−][src]
pub struct AuditLogEntry {
pub action_type: AuditLogEventType,
pub changes: Vec<AuditLogChange>,
pub id: AuditLogEntryId,
pub options: Option<AuditLogOptionalEntryInfo>,
pub reason: Option<String>,
pub target_id: Option<GenericId>,
pub user_id: Option<UserId>,
}Expand description
Entry in an AuditLog possibly containing a number of detailed changes.
Fields
action_type: AuditLogEventTypeType of event to cause the entry.
changes: Vec<AuditLogChange>List of changes included in the entry.
id: AuditLogEntryIdID of the entire entry.
options: Option<AuditLogOptionalEntryInfo>Optional information about the entry.
reason: Option<String>Optional application- or user-attached reason for the action that caused the entry.
target_id: Option<GenericId>ID of the target entity.
user_id: Option<UserId>ID of the user that performed the action.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AuditLogEntry
impl Send for AuditLogEntry
impl Sync for AuditLogEntry
impl Unpin for AuditLogEntry
impl UnwindSafe for AuditLogEntry
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more