pub struct ClaudeCode { /* private fields */ }Expand description
Claude Code stores one JSONL file per session under
~/.claude/projects/<sanitized-cwd>/<session-uuid>.jsonl.
Each line is an event: user/assistant messages, tool results,
summaries, and harness bookkeeping.
ClaudeCode::default() reads the stock ~/.claude install. An embedder
that runs several installs in different homes builds one adapter per
install with ClaudeCode::in_home.
Implementations§
Trait Implementations§
Source§impl Adapter for ClaudeCode
impl Adapter for ClaudeCode
Source§fn reconcile_scope(&self) -> Option<String>
fn reconcile_scope(&self) -> Option<String>
An explicit install speaks only for the rows under its own root; the stock adapter speaks for every Claude Code row, as before.
fn name(&self) -> &'static str
Source§fn root(&self) -> Option<PathBuf>
fn root(&self) -> Option<PathBuf>
Store root, e.g. ~/.claude/projects. May not exist on this machine.
Source§fn discover(&self) -> Discovered
fn discover(&self) -> Discovered
All session files under the root, with a partial-walk flag the indexer
uses to protect deletion reconciliation (see
Discovered).Source§fn parse(&self, path: &Path) -> Result<Session>
fn parse(&self, path: &Path) -> Result<Session>
Parse one session file. Must never panic on malformed input;
skip bad lines and return what could be read.
Source§impl Default for ClaudeCode
impl Default for ClaudeCode
Source§fn default() -> ClaudeCode
fn default() -> ClaudeCode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClaudeCode
impl RefUnwindSafe for ClaudeCode
impl Send for ClaudeCode
impl Sync for ClaudeCode
impl Unpin for ClaudeCode
impl UnsafeUnpin for ClaudeCode
impl UnwindSafe for ClaudeCode
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