1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Audit logging system for RustAPI
//!
//! This module provides comprehensive audit logging with support for
//! GDPR and SOC2 compliance requirements.
//!
//! # Example
//!
//! ```rust,no_run
//! use rustapi_extras::audit::{AuditEvent, AuditAction, InMemoryAuditStore, AuditStore};
//!
//! // Create an audit store
//! let store = InMemoryAuditStore::new();
//!
//! // Log an audit event
//! let event = AuditEvent::new(AuditAction::Create)
//! .resource("users", "user-123")
//! .actor("admin@example.com")
//! .ip_address("192.168.1.1".parse().unwrap())
//! .success(true);
//!
//! store.log(event);
//!
//! // Query events
//! let recent = store.query().limit(10).execute();
//! ```
pub use ;
pub use FileAuditStore;
pub use InMemoryAuditStore;
pub use ;
pub use AuditStore;