pub struct AuditEntry {
pub audit_id: AuditId,
pub actor_id: Option<MemberId>,
pub action: String,
pub target: AuditTarget,
pub at: u64,
pub reason: Option<String>,
pub changes: Vec<AuditChange>,
}Expand description
An audit entry (§8.8).
Fields§
§audit_id: AuditIdHost-assigned id.
actor_id: Option<MemberId>The acting member; null (always written) when the host itself acted: a timer’s
lockdown.expire, membership.probation_end or membership.restore (§8.8, as §7.4
for host-initiated events).
action: StringOne of AUDIT_ACTIONS (kept as text so newer actions still parse).
target: AuditTargetWhat was acted on.
at: u64Time, ms.
reason: Option<String>The moderator’s reason.
changes: Vec<AuditChange>Field changes; never message content or report evidence.
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
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 AuditEntry
impl Debug for AuditEntry
Source§impl<'de> Deserialize<'de> for AuditEntry
impl<'de> Deserialize<'de> for AuditEntry
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 Eq for AuditEntry
Source§impl PartialEq for AuditEntry
impl PartialEq for AuditEntry
Source§impl Serialize for AuditEntry
impl Serialize for AuditEntry
impl StructuralPartialEq for AuditEntry
Auto Trait Implementations§
impl Freeze for AuditEntry
impl RefUnwindSafe for AuditEntry
impl Send for AuditEntry
impl Sync for AuditEntry
impl Unpin for AuditEntry
impl UnsafeUnpin for AuditEntry
impl UnwindSafe for AuditEntry
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