pub struct AuditLedger { /* private fields */ }Implementations§
Source§impl AuditLedger
impl AuditLedger
pub fn new(config: LedgerConfig) -> Self
pub fn record( &self, phase: AuditPhase, agent: &str, action: &str, policy_id: Option<&str>, rule_id: Option<&str>, file_path: Option<&str>, details: Value, ) -> Result<AuditEvent, AuditError>
pub fn read_all(&self) -> Result<Vec<AuditEvent>, AuditError>
Auto Trait Implementations§
impl Freeze for AuditLedger
impl RefUnwindSafe for AuditLedger
impl Send for AuditLedger
impl Sync for AuditLedger
impl Unpin for AuditLedger
impl UnsafeUnpin for AuditLedger
impl UnwindSafe for AuditLedger
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