pub struct SessionMetadata {
pub session_id: String,
pub project_hash: ProjectHash,
pub project_root: Option<String>,
pub provider: String,
pub parent_session_id: Option<String>,
pub spawned_by: Option<SpawnContext>,
}Expand description
Session metadata (DB-derived, not available from events alone).
Contains information inferred from filesystem paths and stored in the index. Separate from AgentSession which is assembled purely from events.
Fields§
§session_id: StringUnique session identifier.
project_hash: ProjectHashProject hash (inferred from log file path).
project_root: Option<String>Project root path (resolved from project_hash).
provider: StringProvider name (claude_code, codex, gemini).
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 SessionMetadata
impl Clone for SessionMetadata
Source§fn clone(&self) -> SessionMetadata
fn clone(&self) -> SessionMetadata
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 moreSource§impl Debug for SessionMetadata
impl Debug for SessionMetadata
Source§impl<'de> Deserialize<'de> for SessionMetadata
impl<'de> Deserialize<'de> for SessionMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionMetadata
impl RefUnwindSafe for SessionMetadata
impl Send for SessionMetadata
impl Sync for SessionMetadata
impl Unpin for SessionMetadata
impl UnwindSafe for SessionMetadata
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