pub struct SessionRow {Show 28 fields
pub added_lines: i64,
pub agent: String,
pub base_branch: String,
pub created_at: i64,
pub deleted_lines: i64,
pub has_diff: Option<bool>,
pub id: String,
pub in_progress_started_at: Option<i64>,
pub in_progress_total_seconds: i64,
pub input_tokens: i64,
pub is_draft: bool,
pub model: String,
pub output_tokens: i64,
pub parent_session_id: Option<String>,
pub personality_id: Option<String>,
pub project_id: Option<i64>,
pub prompt: String,
pub published_upstream_ref: Option<String>,
pub questions: Option<String>,
pub reasoning_level_override: Option<String>,
pub review_request: Option<SessionReviewRequestRow>,
pub role: Option<String>,
pub size: String,
pub speed_mode: String,
pub status: String,
pub summary: Option<String>,
pub title: Option<String>,
pub updated_at: i64,
}Expand description
Row returned when loading a session from the session table.
Includes optional normalized forge review-request linkage metadata loaded
through the session_review_request table when the session has been
published for remote review.
Fields§
§added_lines: i64Persisted added-line count from the latest diff stats refresh.
agent: StringPersisted agent provider kind selected for this session.
base_branch: StringBase branch used to create the session worktree.
created_at: i64Session creation timestamp in Unix seconds.
deleted_lines: i64Persisted deleted-line count from the latest diff stats refresh.
has_diff: Option<bool>Whether the latest successful diff refresh returned content, or
None when diff availability is unknown.
id: StringStable session identifier.
in_progress_started_at: Option<i64>Open active-work interval start timestamp, if any.
in_progress_total_seconds: i64Completed active-work duration in whole seconds.
input_tokens: i64Total input tokens accumulated for the session.
is_draft: boolWhether the session is still an explicit draft.
model: StringPersisted agent model identifier.
output_tokens: i64Total output tokens accumulated for the session.
parent_session_id: Option<String>Parent session id when this is a one-level stacked draft.
personality_id: Option<String>Workspace personality selected for future turns, when present.
project_id: Option<i64>Owning project identifier, when present.
prompt: StringInitial or staged prompt text.
published_upstream_ref: Option<String>Published upstream branch reference, when present.
questions: Option<String>Serialized clarification-question payload, when present.
reasoning_level_override: Option<String>Persisted session-specific reasoning override, when present.
review_request: Option<SessionReviewRequestRow>Joined forge review-request metadata, when present and complete.
role: Option<String>Persisted session role string, or None for the default worker role.
size: StringPersisted size bucket string.
speed_mode: StringPersisted session response-speed preference.
status: StringPersisted lifecycle status string.
summary: Option<String>Persisted structured summary text, when present.
title: Option<String>Optional display title.
updated_at: i64Last update timestamp in Unix seconds.
Auto Trait Implementations§
impl Freeze for SessionRow
impl RefUnwindSafe for SessionRow
impl Send for SessionRow
impl Sync for SessionRow
impl Unpin for SessionRow
impl UnsafeUnpin for SessionRow
impl UnwindSafe for SessionRow
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