pub struct TranscriptParser { /* private fields */ }Expand description
Parser for Claude Code transcript JSONL files.
Implementations§
Source§impl TranscriptParser
impl TranscriptParser
Sourcepub fn new(machine_id: impl Into<String>) -> Self
pub fn new(machine_id: impl Into<String>) -> Self
Create a new parser with the given machine ID.
Sourcepub fn parse_incremental(
&self,
path: &Path,
start_position: &FilePosition,
) -> Result<ParseResult, TranscriptError>
pub fn parse_incremental( &self, path: &Path, start_position: &FilePosition, ) -> Result<ParseResult, TranscriptError>
Parse new entries from a transcript file starting at the given position.
Returns events, updated position, and UUIDs seen.
Sourcepub fn parse_full(&self, path: &Path) -> Result<ParseResult, TranscriptError>
pub fn parse_full(&self, path: &Path) -> Result<ParseResult, TranscriptError>
Parse entire transcript file from the beginning.
Auto Trait Implementations§
impl Freeze for TranscriptParser
impl RefUnwindSafe for TranscriptParser
impl Send for TranscriptParser
impl Sync for TranscriptParser
impl Unpin for TranscriptParser
impl UnwindSafe for TranscriptParser
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