vault_audit_tools/audit/mod.rs
1//! Core audit log parsing and data structures.
2//!
3//! This module provides the fundamental types for working with
4//! HashiCorp Vault audit logs.
5//!
6//! ## Key Components
7//!
8//! - [`types`] - Data structures representing audit log entries
9//!
10//! ## Example
11//!
12//! ```no_run
13//! use vault_audit_tools::audit::types::AuditEntry;
14//! use std::fs::File;
15//! use std::io::{BufRead, BufReader};
16//!
17//! let file = File::open("audit.log").unwrap();
18//! let reader = BufReader::new(file);
19//!
20//! for line in reader.lines() {
21//! let line = line.unwrap();
22//! if let Ok(entry) = serde_json::from_str::<AuditEntry>(&line) {
23//! if let Some(request) = &entry.request {
24//! if let Some(operation) = &request.operation {
25//! println!("Operation: {}", operation);
26//! }
27//! }
28//! }
29//! }
30//! ```
31
32pub mod types;