pub struct ProjectSummary {
pub slug: String,
pub decoded_path: PathBuf,
pub is_decode_verified: bool,
pub session_count: usize,
pub last_modified: Option<SystemTime>,
}Expand description
Summary of one project directory.
Fields§
§slug: StringOn-disk directory name (the encoded path).
decoded_path: PathBufBest-effort decode of the slug back to a filesystem path, anchored on the live filesystem. See module docs for caveats.
Reconstructed, not recorded: for exact project attribution
prefer the cwd field on HistoryEntry::User, which
survives the project directory being renamed or deleted.
is_decode_verified: boolWhether decoded_path was verified against the real filesystem.
true when every component, including the leaf, matched a real
directory entry during decoding. false when at least one
component matched nothing on disk – a deleted project
directory is the common case – and fell back to the naive
--to-/ replacement for that component.
§Example
// A real project: slug round-trips via filesystem check
// is_decode_verified == true when the actual directory exists
// is_decode_verified == false when decoding a slug for a path
// that no longer exists on disksession_count: usizeNumber of *.jsonl files in the directory.
last_modified: Option<SystemTime>Latest filesystem modification time across the project’s session files. None if the directory is empty or stats fail.
Trait Implementations§
Source§impl Clone for ProjectSummary
impl Clone for ProjectSummary
Source§fn clone(&self) -> ProjectSummary
fn clone(&self) -> ProjectSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more