pub struct ParsedEvent {
pub uuid: String,
pub session_id: String,
pub parent_uuid: Option<String>,
pub is_sidechain: bool,
pub role: Option<String>,
pub msg_type: String,
pub text: Option<String>,
pub raw: String,
pub created_at_micros: i64,
pub cwd: Option<String>,
pub git_branch: Option<String>,
pub slug: Option<String>,
}Expand description
A single parsed event, source-agnostic.
Fields§
§uuid: StringEvent UUID — the primary key for idempotency.
For Claude Code events this is the top-level uuid field.
For Codex events (which carry no per-message uuid) this is synthesised
as "{session_id}:{abs_byte_offset}".
For ChatGPT export events this is the mapping node’s message.id.
session_id: StringSession UUID.
parent_uuid: Option<String>Parent event UUID if present.
is_sidechain: boolWhether this event is on a sidechain.
role: Option<String>message.role (CC) or payload.role (Codex) when present.
msg_type: StringTop-level type field.
text: Option<String>Extracted display text, secrets masked; None for non-message events.
raw: StringFull original line with secrets masked.
created_at_micros: i64timestamp as microseconds since the Unix epoch; 0 if absent or unparseable.
cwd: Option<String>cwd if present.
git_branch: Option<String>gitBranch (CC) or payload.git.branch (Codex) if present.
slug: Option<String>slug if present (CC: project slug; ChatGPT export: conversation
title; Codex files carry no slug concept).
Trait Implementations§
Source§impl Clone for ParsedEvent
impl Clone for ParsedEvent
Source§fn clone(&self) -> ParsedEvent
fn clone(&self) -> ParsedEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more