pub struct AuditLogEntry {
pub raw_log: String,
pub timestamp_utc: Option<String>,
pub log_hash: String,
}Expand description
A single audit log entry (optimized for minimal deserialization)
This struct only deserializes the timestamp field and keeps the rest as raw JSON to minimize parsing overhead and memory allocations. The hash is computed using xxHash (much faster than SHA256 for duplicate detection).
Fields§
§raw_log: StringRaw JSON string of the log entry (as received from API)
timestamp_utc: Option<String>§Errors
Returns an error if the API request fails, the resource is not found,
or authentication/authorization fails.
Timestamp converted to UTC (computed from the timestamp field in raw_log)
log_hash: StringxxHash (128-bit) of the raw log entry for fast duplicate detection
Trait Implementations§
Source§impl Clone for AuditLogEntry
impl Clone for AuditLogEntry
Source§fn clone(&self) -> AuditLogEntry
fn clone(&self) -> AuditLogEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 AuditLogEntry
impl Debug for AuditLogEntry
Auto Trait Implementations§
impl Freeze for AuditLogEntry
impl RefUnwindSafe for AuditLogEntry
impl Send for AuditLogEntry
impl Sync for AuditLogEntry
impl Unpin for AuditLogEntry
impl UnwindSafe for AuditLogEntry
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