pub struct AuditLogger { /* private fields */ }Expand description
Audit logger for recording permission checks and denials
Implementations§
Source§impl AuditLogger
impl AuditLogger
Sourcepub fn log_execution(
&self,
tool: String,
agent: Option<String>,
context: Option<String>,
) -> Result<(), String>
pub fn log_execution( &self, tool: String, agent: Option<String>, context: Option<String>, ) -> Result<(), String>
Log a tool execution
Sourcepub fn log_denial(
&self,
tool: String,
agent: Option<String>,
context: Option<String>,
) -> Result<(), String>
pub fn log_denial( &self, tool: String, agent: Option<String>, context: Option<String>, ) -> Result<(), String>
Log a tool denial
Trait Implementations§
Source§impl Clone for AuditLogger
impl Clone for AuditLogger
Source§fn clone(&self) -> AuditLogger
fn clone(&self) -> AuditLogger
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 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