pub struct SecurityAuditHook { /* private fields */ }Expand description
Security and audit hook for tracking sensitive operations
Implementations§
Source§impl SecurityAuditHook
impl SecurityAuditHook
Sourcepub fn sensitive_operations(self, operations: Vec<String>) -> Self
pub fn sensitive_operations(self, operations: Vec<String>) -> Self
Add sensitive operations that require auditing
Require authorization for sensitive operations
Sourcepub fn get_audit_log(&self) -> Vec<AuditEntry>
pub fn get_audit_log(&self) -> Vec<AuditEntry>
Get audit log
Trait Implementations§
Source§impl Clone for SecurityAuditHook
impl Clone for SecurityAuditHook
Source§fn clone(&self) -> SecurityAuditHook
fn clone(&self) -> SecurityAuditHook
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 moreSource§impl Debug for SecurityAuditHook
impl Debug for SecurityAuditHook
Source§impl ExecutionHook for SecurityAuditHook
impl ExecutionHook for SecurityAuditHook
Source§fn execute(
&mut self,
context: &ExecutionContext,
data: Option<&HookData>,
) -> SklResult<HookResult>
fn execute( &mut self, context: &ExecutionContext, data: Option<&HookData>, ) -> SklResult<HookResult>
Execute the hook
Source§fn should_execute(&self, phase: HookPhase) -> bool
fn should_execute(&self, phase: HookPhase) -> bool
Check if hook should execute for given phase
Auto Trait Implementations§
impl Freeze for SecurityAuditHook
impl RefUnwindSafe for SecurityAuditHook
impl Send for SecurityAuditHook
impl Sync for SecurityAuditHook
impl Unpin for SecurityAuditHook
impl UnwindSafe for SecurityAuditHook
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more