#[non_exhaustive]pub struct AuditEntry {
pub caller: Option<String>,
pub application: Option<String>,
pub profile: Option<String>,
pub endpoint: &'static str,
pub outcome: Outcome,
pub generation: Option<u64>,
}Expand description
One line of the audit log.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.caller: Option<String>The configured client name, or None when nobody was identified.
application: Option<String>The application asked for — None when the request shape was
refused, because an unvalidated path segment is attacker-controlled
text and a log line is a place newlines matter.
profile: Option<String>The profile asked for, under the same rule.
endpoint: &'static strWhich endpoint, from a fixed list.
outcome: OutcomeHow it ended.
generation: Option<u64>The generation served, when something was.
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
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 AuditEntry
impl Debug for AuditEntry
Auto Trait Implementations§
impl Freeze for AuditEntry
impl RefUnwindSafe for AuditEntry
impl Send for AuditEntry
impl Sync for AuditEntry
impl Unpin for AuditEntry
impl UnsafeUnpin for AuditEntry
impl UnwindSafe for AuditEntry
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