pub struct AuditEvent {
pub sequence: u64,
pub event_id: String,
pub timestamp: String,
pub event_type: String,
pub actor: String,
pub payload: String,
pub prev_hash: String,
pub event_hash: String,
pub signature: Option<String>,
}Expand description
An immutable event record committed to the audit chain.
Fields§
§sequence: u64Monotonically increasing sequence number starting at 1.
event_id: StringUnique event identifier string.
timestamp: StringEvent timestamp in seconds since UNIX epoch.
event_type: StringDot-separated action taxonomy (for example: agent.startup, tool.exec).
actor: StringProcess, user, or subagent identity that triggered the action.
payload: StringCanonical JSON payload representing the event inputs and parameters.
prev_hash: StringThe event_hash of sequence - 1, or GENESIS_PREV_HASH for sequence 1.
event_hash: StringSHA-256 hexadecimal hash computed across the event header and payload.
signature: Option<String>Optional detached cryptographic signature verifying author authenticity.
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§impl Debug for AuditEvent
impl Debug for AuditEvent
impl Eq for AuditEvent
Source§impl PartialEq for AuditEvent
impl PartialEq for AuditEvent
impl StructuralPartialEq for AuditEvent
Auto Trait Implementations§
impl Freeze for AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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