pub struct SessionRecord {
pub id: String,
pub project_hash: ProjectHash,
pub repository_hash: Option<RepositoryHash>,
pub provider: String,
pub start_ts: Option<String>,
pub end_ts: Option<String>,
pub snippet: Option<String>,
pub is_valid: bool,
pub parent_session_id: Option<String>,
pub spawned_by: Option<SpawnContext>,
}Expand description
Complete session record from the index database.
Contains all indexed metadata for a session, including validity status. Used internally by the index layer.
Fields§
§id: StringSession UUID.
project_hash: ProjectHashProject this session belongs to.
repository_hash: Option<RepositoryHash>Git repository hash for worktree support (None for non-git directories).
provider: StringProvider name (claude, codex, gemini).
start_ts: Option<String>Session start timestamp (ISO 8601).
end_ts: Option<String>Session end timestamp (ISO 8601), if completed.
snippet: Option<String>First user message snippet for display.
is_valid: boolWhether the session was successfully parsed and validated.
parent_session_id: Option<String>Parent session ID for subagent sessions.
spawned_by: Option<SpawnContext>Spawn context for subagent sessions (turn/step where spawned).
Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§fn clone(&self) -> SessionRecord
fn clone(&self) -> SessionRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnwindSafe for SessionRecord
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