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.
For Claude.ai export events this is chat_messages[].uuid.
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>Normalized provider role when present.
msg_type: StringSource event or content type.
text: Option<String>Extracted display text, secrets masked; None for non-message events.
raw: StringOriginal line or serialized export message/node with secrets masked.
created_at_micros: i64Source timestamp 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/Claude.ai 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 moreSource§impl Debug for ParsedEvent
impl Debug for ParsedEvent
Source§impl PartialEq for ParsedEvent
impl PartialEq for ParsedEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more