pub enum SessionEntry {
User(UserEntry),
Assistant(AssistantEntry),
Summary(SummaryEntry),
Other,
}Expand description
Top-level entry in a Claude Code session JSONL file.
Uses untagged enum because the type field values don’t map cleanly to Rust enum variants.
Variants§
User(UserEntry)
Assistant(AssistantEntry)
Summary(SummaryEntry)
Other
Entries we don’t need for backfill (attachment, system, queue-operation, last-prompt).
Trait Implementations§
Source§impl Clone for SessionEntry
impl Clone for SessionEntry
Source§fn clone(&self) -> SessionEntry
fn clone(&self) -> SessionEntry
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 moreAuto Trait Implementations§
impl Freeze for SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnsafeUnpin for SessionEntry
impl UnwindSafe for SessionEntry
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