pub struct SecurityAuditLogger { /* private fields */ }Expand description
Security audit logger using structured tracing events
Implementations§
Source§impl SecurityAuditLogger
impl SecurityAuditLogger
Sourcepub fn log_authentication(
&self,
user_id: &str,
success: bool,
details: Option<&str>,
)
pub fn log_authentication( &self, user_id: &str, success: bool, details: Option<&str>, )
Log authentication event
Log authorization event
Sourcepub fn log_tool_execution(
&self,
user_id: &str,
tool_name: &str,
success: bool,
execution_time_ms: u64,
)
pub fn log_tool_execution( &self, user_id: &str, tool_name: &str, success: bool, execution_time_ms: u64, )
Log tool execution
Sourcepub fn log_security_violation(
&self,
violation_type: &str,
details: &str,
severity: &str,
)
pub fn log_security_violation( &self, violation_type: &str, details: &str, severity: &str, )
Log security violation
Trait Implementations§
Source§impl Clone for SecurityAuditLogger
impl Clone for SecurityAuditLogger
Source§fn clone(&self) -> SecurityAuditLogger
fn clone(&self) -> SecurityAuditLogger
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SecurityAuditLogger
impl RefUnwindSafe for SecurityAuditLogger
impl Send for SecurityAuditLogger
impl Sync for SecurityAuditLogger
impl Unpin for SecurityAuditLogger
impl UnwindSafe for SecurityAuditLogger
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