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. See module docs for caveats.
is_decode_verified: boolWhether decoded_path was verified against the real filesystem.
true when the slug was disambiguated by checking path.exists() at
each segment boundary. false when no filesystem path matched during
decoding and the result is a naive --to-/ replacement.
§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
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 ProjectSummary
impl Debug for ProjectSummary
Auto Trait Implementations§
impl Freeze for ProjectSummary
impl RefUnwindSafe for ProjectSummary
impl Send for ProjectSummary
impl Sync for ProjectSummary
impl Unpin for ProjectSummary
impl UnsafeUnpin for ProjectSummary
impl UnwindSafe for ProjectSummary
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