Skip to main content

SessionMeta

Struct SessionMeta 

Source
pub struct SessionMeta {
Show 26 fields pub project: Option<SessionProject>, pub version: u32, pub id: String, pub title: String, pub created_at: String, pub updated_at: String, pub last_activity_at: Option<String>, pub provider_id: String, pub model_id: String, pub reasoning: Option<String>, pub show_reasoning: Option<bool>, pub reasoning_variants: Option<Vec<ReasoningLabel>>, pub supports_vision: Option<bool>, pub reasoning_support: Option<ReasoningSupport>, pub reasoning_metadata_source: Option<String>, pub reasoning_titles: Option<bool>, pub workspace_root: Option<String>, pub context_tokens: Option<i64>, pub context_estimate_tokens: Option<i64>, pub context_window_tokens: Option<i64>, pub key_positions: Option<Map<String, Value>>, pub has_user_message: Option<bool>, pub automatic_wake_held: Option<bool>, pub preview: Option<String>, pub first_user_message: Option<String>, pub last_assistant_message: Option<String>,
}
Expand description

Saved-record fields shared by a full view and a patch view: everything SavedSession carries except entries, conversation, and conversationArchive (the conversation arrays never leave the host).

Used directly as patch.session; SessionView flattens it together with entries for snapshot sessions.

Fields§

§project: Option<SessionProject>§version: u32

Saved-record format version (literal 1 in TypeScript).

§id: String§title: String§created_at: String§updated_at: String§last_activity_at: Option<String>

Content-activity stamp used for ordering; absent on records saved before the field existed (listing falls back to updatedAt).

§provider_id: String§model_id: String§reasoning: Option<String>§show_reasoning: Option<bool>§reasoning_variants: Option<Vec<ReasoningLabel>>

The levels this session’s own model offers; keeps the chat’s picker honest while the shared runtime is bound to another model.

§supports_vision: Option<bool>§reasoning_support: Option<ReasoningSupport>§reasoning_metadata_source: Option<String>

Optional and nullable as in TypeScript; readers treat null and an absent key alike (see docs/ipc-protocol.md, open questions).

§reasoning_titles: Option<bool>§workspace_root: Option<String>§context_tokens: Option<i64>§context_estimate_tokens: Option<i64>§context_window_tokens: Option<i64>§key_positions: Option<Map<String, Value>>

Opaque provider/key-pool ids mapped to the last selected key position.

§has_user_message: Option<bool>§automatic_wake_held: Option<bool>

Owner stop/Esc policy survives host restarts.

§preview: Option<String>§first_user_message: Option<String>§last_assistant_message: Option<String>

Trait Implementations§

Source§

impl Clone for SessionMeta

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SessionMeta

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SessionMeta

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SessionMeta

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SessionMeta

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SessionMeta

Auto Trait Implementations§

§

impl Forget for SessionMeta

§

impl Freeze for SessionMeta

§

impl Move for SessionMeta

§

impl RefUnwindSafe for SessionMeta

§

impl Send for SessionMeta
where RawVecInner: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send,

§

impl Sync for SessionMeta
where RawVecInner: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync,

§

impl Unpin for SessionMeta
where *const u8 is !null: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin,

§

impl UnsafeUnpin for SessionMeta

§

impl UnwindSafe for SessionMeta
where RawVecInner: UnwindSafe, BTreeMap<String, Value>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.