pub struct AuditRecord {
pub timestamp_ms: u128,
pub session: SessionId,
pub tool: String,
pub function: String,
pub ok: bool,
pub error: Option<String>,
}Expand description
One audit-trail entry.
Fields§
§timestamp_ms: u128Unix-millisecond timestamp of the call.
session: SessionIdSession id.
tool: StringTool name.
function: StringFunction being guarded.
ok: boolWhether the call returned Ok.
error: Option<String>Error message, if the call failed.
Trait Implementations§
Source§impl Clone for AuditRecord
impl Clone for AuditRecord
Source§fn clone(&self) -> AuditRecord
fn clone(&self) -> AuditRecord
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 AuditRecord
impl Debug for AuditRecord
Source§impl PartialEq for AuditRecord
impl PartialEq for AuditRecord
Source§fn eq(&self, other: &AuditRecord) -> bool
fn eq(&self, other: &AuditRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AuditRecord
impl StructuralPartialEq for AuditRecord
Auto Trait Implementations§
impl Freeze for AuditRecord
impl RefUnwindSafe for AuditRecord
impl Send for AuditRecord
impl Sync for AuditRecord
impl Unpin for AuditRecord
impl UnsafeUnpin for AuditRecord
impl UnwindSafe for AuditRecord
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