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.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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>,
Source§impl JsonSchema for Event
impl JsonSchema for Event
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more