pub struct SessionFile {
pub path: PathBuf,
pub session_id: String,
pub project_name: String,
pub file_size: u64,
pub created_at: i64,
pub modified_at: i64,
pub has_subagents: bool,
pub model: Option<String>,
pub error_count: usize,
pub first_message: Option<String>,
pub source_dir: String,
pub subagent_models: Option<String>,
}Expand description
Represents a discovered session file
Fields§
§path: PathBufFull path to the JSONL file
session_id: StringSession ID (extracted from filename)
project_name: StringProject name (decoded from directory name)
file_size: u64File size in bytes
created_at: i64Session creation timestamp (seconds since epoch, from first node’s timestamp)
modified_at: i64Last modified timestamp (seconds since epoch)
has_subagents: boolWhether this session has subagents (folder with subagents/ directory)
model: Option<String>Model used (short name, e.g. “sonnet-4-5”)
error_count: usizeNumber of errors (tool result errors + error nodes)
first_message: Option<String>First user message preview (up to 80 chars)
source_dir: StringSource directory path (from config, e.g. “~/.claude/projects”)
subagent_models: Option<String>Comma-separated unique models used by subagents (e.g. “claude-haiku-4-5”)
Trait Implementations§
Source§impl Clone for SessionFile
impl Clone for SessionFile
Source§fn clone(&self) -> SessionFile
fn clone(&self) -> SessionFile
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 SessionFile
impl Debug for SessionFile
Source§impl From<SessionFile> for SessionFileDto
impl From<SessionFile> for SessionFileDto
Source§fn from(s: SessionFile) -> Self
fn from(s: SessionFile) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionFile
impl RefUnwindSafe for SessionFile
impl Send for SessionFile
impl Sync for SessionFile
impl Unpin for SessionFile
impl UnsafeUnpin for SessionFile
impl UnwindSafe for SessionFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more