#[non_exhaustive]pub enum AuditLevel {
Silent,
Summary,
Full,
FullWithPayload {
max_bytes: usize,
},
}Expand description
Controls how much detail is captured for a module’s operations. Application layer picks from this closed set — no custom implementations allowed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Silent
No output at all. Maximum performance.
Summary
Operation type + elapsed time only.
Example: [HTTP GET] 127ms OK
Full
Operation type + comment + target + elapsed + trace ID.
Example: [HTTP GET] Intent: [Sync tasks] URL: https://... 127ms OK Trace: abc-123
FullWithPayload
Full detail + captured request/response payload (truncated). For debugging and compliance-critical environments.
Trait Implementations§
Source§impl Clone for AuditLevel
impl Clone for AuditLevel
Source§fn clone(&self) -> AuditLevel
fn clone(&self) -> AuditLevel
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 moreimpl Copy for AuditLevel
Source§impl Debug for AuditLevel
impl Debug for AuditLevel
impl Eq for AuditLevel
Source§impl PartialEq for AuditLevel
impl PartialEq for AuditLevel
Source§fn eq(&self, other: &AuditLevel) -> bool
fn eq(&self, other: &AuditLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuditLevel
Auto Trait Implementations§
impl Freeze for AuditLevel
impl RefUnwindSafe for AuditLevel
impl Send for AuditLevel
impl Sync for AuditLevel
impl Unpin for AuditLevel
impl UnsafeUnpin for AuditLevel
impl UnwindSafe for AuditLevel
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