pub struct SessionRecord {
pub id: String,
pub title: Option<String>,
pub model: Option<String>,
pub cwd: Option<String>,
pub parent_id: Option<String>,
pub created_at: u64,
pub updated_at: u64,
}Expand description
A persisted session’s metadata — cheap to list without loading the
transcript, so a sessions view can render titles/models without reading
every message file. Forward-compatible: new fields carry #[serde(default)]
so an older on-disk record still deserializes.
Fields§
§id: String§title: Option<String>A short display title (derived from the opening prompt; host-renamable).
model: Option<String>The model the session was started with.
cwd: Option<String>The working directory the session ran in (for project grouping/display).
parent_id: Option<String>The parent session, set when this is a task subagent’s child session
(None for a top-level session). Lets a host show a session tree.
created_at: u64Epoch milliseconds at creation and at the last update.
updated_at: u64Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§fn clone(&self) -> SessionRecord
fn clone(&self) -> SessionRecord
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 SessionRecord
impl Debug for SessionRecord
Source§impl<'de> Deserialize<'de> for SessionRecord
impl<'de> Deserialize<'de> for SessionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnsafeUnpin for SessionRecord
impl UnwindSafe for SessionRecord
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