pub struct SessionEntry {
pub session_id: String,
pub cwd: Option<PathBuf>,
pub transcript_path: Option<PathBuf>,
pub repo: Option<String>,
pub model: Option<String>,
pub state: SessionState,
pub source: Source,
pub last_event: SessionEvent,
pub started_at: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
}Expand description
One live session in the registry.
Serialized verbatim into list / status payloads; consumers compute age
from last_seen (RFC 3339). source is resolved at
list time (stored as Source::Terminal until
then).
Fields§
§session_id: StringThe Claude session_id.
cwd: Option<PathBuf>The session’s working directory, when known.
transcript_path: Option<PathBuf>The transcript path, when known.
repo: Option<String>The repository name enriched from cwd, when resolvable.
model: Option<String>The model id, when reported.
state: SessionStateThe current inferred state.
source: SourceWhere the session runs, resolved on read.
last_event: SessionEventThe most recent event observed for this session.
started_at: DateTime<Utc>When the session was first observed (RFC 3339).
last_seen: DateTime<Utc>When the registry last heard from this session (RFC 3339).
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 moreSource§impl Debug for SessionEntry
impl Debug for SessionEntry
Auto 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