pub struct AuditEvent<'a> {
pub store: &'a StoreId,
pub access: Access,
pub actor: &'a Actor,
pub name: Option<&'a str>,
pub version: Option<Version>,
pub allowed: bool,
pub request_id: Option<&'a str>,
}Expand description
What the audit log records. No value, ever.
Fields§
§store: &'a StoreId§access: Access§actor: &'a Actor§name: Option<&'a str>Absent for list, which is about the store rather than one name.
version: Option<Version>§allowed: boolfalse when the call returned an error; the log records the
attempt either way.
request_id: Option<&'a str>The request this access belongs to, when there is one, so an
audit row can be tied to a log line (cratefield_core::Scope).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AuditEvent<'a>
impl<'a> RefUnwindSafe for AuditEvent<'a>
impl<'a> Send for AuditEvent<'a>
impl<'a> Sync for AuditEvent<'a>
impl<'a> Unpin for AuditEvent<'a>
impl<'a> UnsafeUnpin for AuditEvent<'a>
impl<'a> UnwindSafe for AuditEvent<'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