pub struct Session {Show 15 fields
pub id: SessionId,
pub title: String,
pub worktree: PathBuf,
pub repository: Option<Identity>,
pub target: Option<ChatTarget>,
pub view: SessionView,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub acp_binding: Option<AcpBinding>,
pub running: bool,
pub waiting_permission: bool,
pub live_config_options: Vec<ConfigOption>,
pub verify_bridge_state: VerifyBridgeState,
pub legacy_migration_notice: bool,
pub unavailable: Option<String>,
/* private fields */
}Fields§
§id: SessionId§title: String§worktree: PathBuf§repository: Option<Identity>§target: Option<ChatTarget>§view: SessionView§created_at: Timestamp§updated_at: Timestamp§acp_binding: Option<AcpBinding>§running: boolLive ownership of a turn, read separately from the saved session.
waiting_permission: boolDerived live from running && has_pending_permission; never persisted in Activity.
live_config_options: Vec<ConfigOption>Live ACP configOptions snapshot while a turn is running.
verify_bridge_state: VerifyBridgeStateLive Verify MCP bridge state while an ACP turn is running.
legacy_migration_notice: boolTrue when this historical session was saved on a legacy engine (claude-agent or legacy
antigravity) so the UI and handoff surface the transition explicitly (C-NO-SILENT-REGRESSION).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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
Auto Trait Implementations§
impl Forget for Session
impl Freeze for Session
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.