pub struct AuditEvent<'a> {
pub method: &'a str,
pub principal: &'a str,
pub fingerprint: &'a str,
pub scope: &'a str,
pub level: &'a str,
pub auth_mode: &'a str,
pub decision: &'a str,
pub reason: &'a str,
}Expand description
One decision, as the control plane hands it over.
Borrowed, because every field of it is already a &str at the call site and
an audit record must not make the decision path allocate.
Fields§
§method: &'a strService.Method, e.g. Access.Grant.
principal: &'a strThe ACL principal id the credential resolved to.
fingerprint: &'a strSHA256:… of the key that was presented, empty under the development
escape hatch.
scope: &'a strWhat was asked about: server, namespace:x, repo:x/y.
level: &'a strThe grant level the method needs.
auth_mode: &'a strrequired or allow-all-insecure.
decision: &'a strallow, deny or narrow — the same three words the tracing record
carries, so the two can be read side by side.
reason: &'a strWhy, for a decision that has a why. Empty otherwise.
Trait Implementations§
Source§impl<'a> Clone for AuditEvent<'a>
impl<'a> Clone for AuditEvent<'a>
impl<'a> Copy for AuditEvent<'a>
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§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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