pub struct SessionMeta {
pub id: String,
pub timestamp: String,
pub file_path: PathBuf,
pub entry_count: usize,
pub first_user_message: Option<String>,
}Expand description
Lightweight summary of a session on disk.
Fields§
§id: String§timestamp: String§file_path: PathBuf§entry_count: usize§first_user_message: Option<String>First non-empty user-prompt text in the session. Useful as a
human-readable title for picker UIs (e.g. path list pi --format tsv
piped into fzf). None if the session has no parseable user message.
Trait Implementations§
Source§impl Clone for SessionMeta
impl Clone for SessionMeta
Source§fn clone(&self) -> SessionMeta
fn clone(&self) -> SessionMeta
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 SessionMeta
impl RefUnwindSafe for SessionMeta
impl Send for SessionMeta
impl Sync for SessionMeta
impl Unpin for SessionMeta
impl UnsafeUnpin for SessionMeta
impl UnwindSafe for SessionMeta
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