pub struct SessionMeta {
pub path: PathBuf,
pub created: u64,
pub message_count: usize,
pub topic: String,
pub size_bytes: u64,
pub session_id: Option<String>,
}Expand description
Metadata about a saved session (lightweight, no full message load).
Fields§
§path: PathBufPath to the JSONL file.
created: u64Unix timestamp (seconds) — extracted from UUID v7, filename, or file mtime.
message_count: usizeNumber of messages (lines in JSONL).
topic: StringFirst user message — serves as session “topic”.
size_bytes: u64File size in bytes.
session_id: Option<String>Session ID (UUID v7).
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