pub struct Event {
pub kind: EventKind,
pub run_id: Option<String>,
pub client_id: Option<String>,
pub policy_session_id: Option<String>,
pub action_id: Option<String>,
pub proposal_id: Option<String>,
pub data: HashMap<String, Value>,
pub timestamp: DateTime<Utc>,
pub prev_hash: Option<String>,
pub hash: Option<String>,
}Expand description
A single event in the log.
Fields§
§kind: EventKind§run_id: Option<String>Authenticated active-run identity stamped by CAR at append time.
Historical journals omit this field and replay as None.
client_id: Option<String>WebSocket client identity that opened run_id via runs.start.
Never reconstructed from the journal filename during replay.
policy_session_id: Option<String>CAR-minted policy-session identity used for this proposal, when the
caller selected a live session.policy.open session. Unvalidated
caller labels are never copied here.
action_id: Option<String>§proposal_id: Option<String>§data: HashMap<String, Value>§timestamp: DateTime<Utc>§prev_hash: Option<String>Hash of the previous event in the chain (EPIC A / A9 tamper-
evidence). None when hash chaining is disabled (the default) —
the field is skipped in serialization, so logs without chaining are
byte-identical to before this was added.
hash: Option<String>This event’s own content hash, computed over its fields plus
prev_hash. Present only when hash chaining is enabled.