pub struct JournalEntry {
pub sequence: u64,
pub prev_hash: String,
pub entry_hash: String,
pub timestamp_secs: u64,
pub tool_name: String,
pub server_id: String,
pub agent_id: String,
pub bytes_read: u64,
pub bytes_written: u64,
pub delegation_depth: u32,
pub allowed: bool,
}Expand description
A single entry in the session journal.
Each entry records a tool invocation along with data flow metrics and a hash link to the previous entry for tamper detection.
Fields§
§sequence: u64Monotonically increasing sequence number within the session (0-based).
prev_hash: StringSHA-256 hash of the previous entry’s canonical representation. The first entry uses the zero hash (64 hex zeros).
entry_hash: StringSHA-256 hash of this entry’s canonical representation (computed on append).
timestamp_secs: u64Unix timestamp (seconds) when this entry was recorded.
tool_name: StringThe tool that was invoked.
server_id: StringThe server that hosted the tool.
agent_id: StringThe agent that made the invocation.
bytes_read: u64Bytes read during this invocation.
bytes_written: u64Bytes written during this invocation.
delegation_depth: u32Delegation depth at the time of invocation.
allowed: boolWhether the invocation was allowed or denied.
Trait Implementations§
Source§impl Clone for JournalEntry
impl Clone for JournalEntry
Source§fn clone(&self) -> JournalEntry
fn clone(&self) -> JournalEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JournalEntry
impl Debug for JournalEntry
Source§impl<'de> Deserialize<'de> for JournalEntry
impl<'de> Deserialize<'de> for JournalEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JournalEntry
impl RefUnwindSafe for JournalEntry
impl Send for JournalEntry
impl Sync for JournalEntry
impl Unpin for JournalEntry
impl UnsafeUnpin for JournalEntry
impl UnwindSafe for JournalEntry
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