pub struct SessionMeta {Show 14 fields
pub session_id: String,
pub goal: String,
pub model: String,
pub provider: String,
pub created_at: String,
pub updated_at: String,
pub message_count: u64,
pub status: String,
pub tool_registry_hash: Option<String>,
pub first_prompt: Option<String>,
pub last_prompt: Option<String>,
pub cost: Option<SessionCost>,
pub preset: Option<String>,
pub name: Option<String>,
}Expand description
Metadata for a JSONL session.
Fields§
§session_id: String§goal: String§model: String§provider: String§created_at: String§updated_at: String§message_count: u64§status: String§tool_registry_hash: Option<String>BLAKE3 hash of the tool registry specs at session creation
time. Used by recursive resume (g151) to refuse loading a
session whose tool inventory has drifted. None for
pre-g151 sessions; resume tolerates the absence with a
warning rather than an abort.
first_prompt: Option<String>First user message in this session, truncated to 200 chars (g157).
last_prompt: Option<String>Most recent user message, truncated to 200 chars (g157).
cost: Option<SessionCost>Cumulative token usage for this session (g156).
preset: Option<String>Resolved provider preset id (e.g. “deepseek”) at session creation
time. None for pre-preset-config sessions or when the user did
not configure a preset. Optional + skipped on serialize so old
session files round-trip cleanly.
name: Option<String>Optional human-readable display name for this session, set via --name.
Shown in the /resume picker and sessions list output.
Trait Implementations§
Source§impl Clone for SessionMeta
impl Clone for SessionMeta
Source§fn clone(&self) -> SessionMeta
fn clone(&self) -> SessionMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionMeta
impl Debug for SessionMeta
Source§impl<'de> Deserialize<'de> for SessionMeta
impl<'de> Deserialize<'de> for SessionMeta
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>,
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more