pub struct SessionInfo {
pub path: PathBuf,
pub id: String,
pub cwd: String,
pub name: Option<String>,
pub parent_session_path: Option<PathBuf>,
pub created: IsoTimestamp,
pub modified: SystemTime,
pub message_count: usize,
pub first_message: String,
pub all_messages_text: String,
}Expand description
Summary of one session file.
Fields§
§path: PathBufFile path.
id: StringSession id.
cwd: StringHeader cwd (empty when missing).
name: Option<String>Latest session_info name.
parent_session_path: Option<PathBuf>Header parentSession.
created: IsoTimestampHeader timestamp.
modified: SystemTimeLast user/assistant activity, else header time, else file mtime.
message_count: usizeNumber of message entries.
first_message: StringFirst user text, or "(no messages)".
all_messages_text: StringAll user/assistant texts joined with spaces (search corpus).
Trait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
Source§impl Debug for SessionInfo
impl Debug for SessionInfo
impl Eq for SessionInfo
Source§impl PartialEq for SessionInfo
impl PartialEq for SessionInfo
impl StructuralPartialEq for SessionInfo
Auto Trait Implementations§
impl Freeze for SessionInfo
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnsafeUnpin for SessionInfo
impl UnwindSafe for SessionInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.