pub struct Session {Show 13 fields
pub created_at: i64,
pub draft_prompt: Option<String>,
pub id: SessionId,
pub messages: Vec<SessionMessage>,
pub published_upstream_ref: Option<String>,
pub questions: Vec<QuestionItem>,
pub queued_messages: Vec<String>,
pub review_request: Option<ReviewRequest>,
pub settings: SessionSettings,
pub status: SessionStatus,
pub summary: Option<String>,
pub title: Option<String>,
pub updated_at: i64,
}Expand description
Complete persisted session aggregate returned by the programmatic API.
Fields§
§created_at: i64Session creation timestamp in Unix seconds.
draft_prompt: Option<String>Staged draft prompt that has not entered the durable transcript.
id: SessionIdStable session identifier.
messages: Vec<SessionMessage>Ordered durable transcript messages.
published_upstream_ref: Option<String>Published upstream branch reference, when present.
questions: Vec<QuestionItem>Structured clarification questions waiting for answers.
queued_messages: Vec<String>Chat messages waiting behind the active turn or queued branch action.
review_request: Option<ReviewRequest>Persisted review-request linkage, when present.
settings: SessionSettingsComplete session-scoped execution settings.
status: SessionStatusCurrent lifecycle status.
summary: Option<String>Latest persisted structured summary.
title: Option<String>Optional user-visible session title.
updated_at: i64Last update timestamp in Unix seconds.
Trait Implementations§
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.