pub struct LiveSession {
pub pid: Option<u64>,
pub session_id: Option<String>,
pub cwd: Option<String>,
pub started_at_ms: Option<u64>,
pub version: Option<String>,
pub kind: Option<String>,
pub entrypoint: Option<String>,
pub name: Option<String>,
pub file_path: PathBuf,
pub rest: Map<String, Value>,
}Expand description
One entry from the live session registry.
Fields§
§pid: Option<u64>Process id, when present. May refer to an exited process – see the module docs on staleness.
session_id: Option<String>The session id; joins to crate::history transcripts.
cwd: Option<String>Working directory of the session.
started_at_ms: Option<u64>Epoch milliseconds when the session started.
version: Option<String>Claude Code version string.
kind: Option<String>Session kind (e.g. interactive), when present.
entrypoint: Option<String>The surface the session was started from (e.g. cli,
claude-desktop), when present.
name: Option<String>Display name (e.g. claude-wrapper-85), when present.
file_path: PathBufAbsolute path to the source .json.
rest: Map<String, Value>Any additional fields, keyed as Claude Code wrote them. A typed field with an unexpected JSON type also lands here.
Trait Implementations§
Source§impl Clone for LiveSession
impl Clone for LiveSession
Source§fn clone(&self) -> LiveSession
fn clone(&self) -> LiveSession
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 LiveSession
impl Debug for LiveSession
Auto Trait Implementations§
impl Freeze for LiveSession
impl RefUnwindSafe for LiveSession
impl Send for LiveSession
impl Sync for LiveSession
impl Unpin for LiveSession
impl UnsafeUnpin for LiveSession
impl UnwindSafe for LiveSession
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