pub struct Thread {Show 27 fields
pub agent_nickname: Option<String>,
pub agent_role: Option<String>,
pub cli_version: String,
pub created_at: i64,
pub cwd: Value,
pub ephemeral: bool,
pub forked_from_id: Option<String>,
pub git_info: Option<GitInfo>,
pub history_mode: Option<ThreadHistoryMode>,
pub project_id: Option<String>,
pub id: String,
pub model: Option<String>,
pub model_provider: String,
pub name: Option<String>,
pub parent_thread_id: Option<String>,
pub path: Option<String>,
pub preview: String,
pub reasoning_effort: Option<ReasoningEffort>,
pub recency_at: Option<i64>,
pub section: Option<ThreadSection>,
pub section_entered_at: Option<i64>,
pub session_id: String,
pub source: Value,
pub status: Value,
pub thread_source: Option<ThreadSource>,
pub turns: Vec<Turn>,
pub updated_at: i64,
}Fields§
§agent_nickname: Option<String>§agent_role: Option<String>§cli_version: String§created_at: i64§cwd: Value§ephemeral: bool§forked_from_id: Option<String>§git_info: Option<GitInfo>§history_mode: Option<ThreadHistoryMode>Persisted history contract chosen at thread creation (0.148 upstream);
absent on older servers, which are always legacy.
project_id: Option<String>Canonical project assignment owned by app-server, if any. Required upstream from 0.147 but kept tolerant for pre-project servers.
id: String§model: Option<String>Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. Not per-turn execution telemetry.
model_provider: String§name: Option<String>§parent_thread_id: Option<String>§path: Option<String>§preview: String§reasoning_effort: Option<ReasoningEffort>Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. Not per-turn execution telemetry.
recency_at: Option<i64>§section: Option<ThreadSection>§section_entered_at: Option<i64>§session_id: String§source: Value§status: Value§thread_source: Option<ThreadSource>§turns: Vec<Turn>§updated_at: i64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Thread
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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