pub struct SessionIndex {
pub session_id: String,
pub timestamp: Option<String>,
pub latest_mod_time: Option<String>,
pub main_file: PathBuf,
pub sidechain_files: Vec<PathBuf>,
pub project_root: Option<PathBuf>,
pub snippet: Option<String>,
}Expand description
Session index metadata
NOTE: Design rationale for latest_mod_time
timestamprepresents session creation time (when first event was logged)latest_mod_timerepresents last file update time (when session was last active)- For watch mode, we need to track “most recently updated” session, not just “most recently created”
- This enables switching to sessions that are actively being updated, even if they were created earlier
- Since watch bypasses DB indexing for real-time monitoring, we derive this directly from filesystem
Fields§
§session_id: String§timestamp: Option<String>§latest_mod_time: Option<String>§main_file: PathBuf§sidechain_files: Vec<PathBuf>§project_root: Option<PathBuf>§snippet: Option<String>Trait Implementations§
Source§impl Clone for SessionIndex
impl Clone for SessionIndex
Source§fn clone(&self) -> SessionIndex
fn clone(&self) -> SessionIndex
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 SessionIndex
impl RefUnwindSafe for SessionIndex
impl Send for SessionIndex
impl Sync for SessionIndex
impl Unpin for SessionIndex
impl UnwindSafe for SessionIndex
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