soma_gateway/codemode_journal.rs
1use serde_json::Value;
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct JournalEntry {
5 pub namespace: String,
6 pub action: String,
7 pub payload: Value,
8}
9
10impl JournalEntry {
11 #[must_use]
12 pub fn redacted(&self) -> Value {
13 crate::security::redact::redact_json_value(&self.payload)
14 }
15}
16
17#[cfg(test)]
18#[path = "codemode_journal_tests.rs"]
19mod tests;