pub struct PersistedSessionCreation<'a> {Show 13 fields
pub agent: &'a str,
pub base_branch: &'a str,
pub id: &'a str,
pub is_draft: bool,
pub model: &'a str,
pub orchestration_task_id: Option<i64>,
pub parent_session_id: Option<&'a str>,
pub personality_id: Option<&'a str>,
pub project_id: i64,
pub reasoning_level: ReasoningLevel,
pub role: Option<&'a str>,
pub speed_mode: SpeedMode,
pub status: &'a str,
}Expand description
Borrowed values used to persist a newly created session with explicit provider identity and reasoning configuration.
Fields§
§agent: &'a strPersisted agent provider kind for the session.
base_branch: &'a strBase branch or parent branch used for future worktree materialization.
id: &'a strStable session identifier.
is_draft: boolWhether the row was created through explicit draft staging.
model: &'a strPersisted model identifier for the session.
orchestration_task_id: Option<i64>Orchestration task that owns this child session, when applicable.
parent_session_id: Option<&'a str>Optional parent session id for one-level stacked drafts.
personality_id: Option<&'a str>Workspace personality selected for future turns, when present.
project_id: i64Owning project identifier.
reasoning_level: ReasoningLevelReasoning level captured from the project default at creation.
role: Option<&'a str>Persisted session role, or None for the default worker role.
speed_mode: SpeedModeResponse-speed preference captured for the session.
status: &'a strInitial lifecycle status string.
Auto Trait Implementations§
impl<'a> Freeze for PersistedSessionCreation<'a>
impl<'a> RefUnwindSafe for PersistedSessionCreation<'a>
impl<'a> Send for PersistedSessionCreation<'a>
impl<'a> Sync for PersistedSessionCreation<'a>
impl<'a> Unpin for PersistedSessionCreation<'a>
impl<'a> UnsafeUnpin for PersistedSessionCreation<'a>
impl<'a> UnwindSafe for PersistedSessionCreation<'a>
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> 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