pub struct AuditEntry {
pub timestamp: DateTime<Utc>,
pub event: AuditEvent,
pub session_id: SessionId,
}Expand description
A single audit log entry.
Fields§
§timestamp: DateTime<Utc>When the event occurred.
event: AuditEventType of event.
session_id: SessionIdSession involved.
Implementations§
Source§impl AuditEntry
impl AuditEntry
Sourcepub fn involves_signer(&self, signer_id: &str) -> bool
pub fn involves_signer(&self, signer_id: &str) -> bool
Does this entry involve the given signer?
Sourcepub fn event_type_name(&self) -> &'static str
pub fn event_type_name(&self) -> &'static str
Event type as a snake_case string.
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
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