pub struct AuditLogger { /* private fields */ }Expand description
Audit logger for recording security events
Implementations§
Source§impl AuditLogger
impl AuditLogger
Sourcepub fn log_api_key_access(
&self,
provider: &str,
actor: &str,
result: &str,
) -> Result<(), Box<dyn Error>>
pub fn log_api_key_access( &self, provider: &str, actor: &str, result: &str, ) -> Result<(), Box<dyn Error>>
Log API key access
Sourcepub fn log_api_key_rotation(
&self,
provider: &str,
actor: &str,
result: &str,
) -> Result<(), Box<dyn Error>>
pub fn log_api_key_rotation( &self, provider: &str, actor: &str, result: &str, ) -> Result<(), Box<dyn Error>>
Log API key rotation
Sourcepub fn log_authentication_attempt(
&self,
provider: &str,
actor: &str,
result: &str,
details: &str,
) -> Result<(), Box<dyn Error>>
pub fn log_authentication_attempt( &self, provider: &str, actor: &str, result: &str, details: &str, ) -> Result<(), Box<dyn Error>>
Log authentication attempt
Log authorization decision
Auto Trait Implementations§
impl !Freeze for AuditLogger
impl RefUnwindSafe for AuditLogger
impl Send for AuditLogger
impl Sync for AuditLogger
impl Unpin for AuditLogger
impl UnwindSafe for AuditLogger
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