pub struct AuditEntry<'a> {
pub ts: String,
pub path: &'a str,
pub resolved: Option<&'a str>,
pub outcome: &'static str,
pub size: Option<u64>,
pub blake3: Option<&'a str>,
pub reason: Option<String>,
}Expand description
T-32b audit log entry. Written as a single JSON line per attempt
so the file is tail -f-friendly + parseable with jq.
Fields§
§ts: StringRFC3339 UTC timestamp.
path: &'a strOperator-supplied path verbatim — preserved so a typo is debuggable directly from the log.
resolved: Option<&'a str>Canonicalized path (None when the path failed to resolve).
outcome: &'static str§size: Option<u64>§blake3: Option<&'a str>§reason: Option<String>Trait Implementations§
Source§impl<'a> Clone for AuditEntry<'a>
impl<'a> Clone for AuditEntry<'a>
Source§fn clone(&self) -> AuditEntry<'a>
fn clone(&self) -> AuditEntry<'a>
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<'a> Debug for AuditEntry<'a>
impl<'a> Debug for AuditEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuditEntry<'a>
impl<'a> RefUnwindSafe for AuditEntry<'a>
impl<'a> Send for AuditEntry<'a>
impl<'a> Sync for AuditEntry<'a>
impl<'a> Unpin for AuditEntry<'a>
impl<'a> UnsafeUnpin for AuditEntry<'a>
impl<'a> UnwindSafe for AuditEntry<'a>
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