pub async fn write(
state: &ServerState,
ctx: &AuthContext,
action: &str,
run_id: Option<String>,
config_fingerprint: Option<String>,
result: &str,
)Available on crate feature
serve only.Expand description
Build + persist one audit record (best-effort). A backend write failure is logged at WARN and swallowed: auditing must never fail the underlying action, but the failure is made visible rather than lost.