pub struct SessionOpenResult {
pub metadata: Option<RemoteSessionMetadataValue>,
pub progress: Option<Vec<SessionsOpenProgress>>,
pub remote_session_id: Option<SessionId>,
pub session_id: Option<SessionId>,
pub startup_prompts: Option<Vec<String>>,
pub status: SessionsOpenStatus,
/* private fields */
}Expand description
Result of opening a session.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§metadata: Option<RemoteSessionMetadataValue>Remote session metadata, present when status is connected.
progress: Option<Vec<SessionsOpenProgress>>Handoff progress steps, present when status is handed_off.
remote_session_id: Option<SessionId>Remote session ID, present when status is connected.
session_id: Option<SessionId>Opened session ID. Omitted when status is not_found.
startup_prompts: Option<Vec<String>>Startup prompts queued by user-level hook configs at session creation. Only populated when status is created; resumed sessions return an empty array.
status: SessionsOpenStatusOutcome of the open request.
Trait Implementations§
Source§impl Clone for SessionOpenResult
impl Clone for SessionOpenResult
Source§fn clone(&self) -> SessionOpenResult
fn clone(&self) -> SessionOpenResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionOpenResult
impl Debug for SessionOpenResult
Source§impl Default for SessionOpenResult
impl Default for SessionOpenResult
Source§fn default() -> SessionOpenResult
fn default() -> SessionOpenResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionOpenResult
impl<'de> Deserialize<'de> for SessionOpenResult
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 Freeze for SessionOpenResult
impl RefUnwindSafe for SessionOpenResult
impl Send for SessionOpenResult
impl Sync for SessionOpenResult
impl Unpin for SessionOpenResult
impl UnsafeUnpin for SessionOpenResult
impl UnwindSafe for SessionOpenResult
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