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}".
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-only; 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedEvent
impl Debug for ParsedEvent
Source§impl PartialEq for ParsedEvent
impl PartialEq for ParsedEvent
Source§fn eq(&self, other: &ParsedEvent) -> bool
fn eq(&self, other: &ParsedEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParsedEvent
Auto Trait Implementations§
impl Freeze for ParsedEvent
impl RefUnwindSafe for ParsedEvent
impl Send for ParsedEvent
impl Sync for ParsedEvent
impl Unpin for ParsedEvent
impl UnsafeUnpin for ParsedEvent
impl UnwindSafe for ParsedEvent
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