pub struct Session {Show 17 fields
pub id: String,
pub slug: Option<String>,
pub version: Option<String>,
pub project_id: Option<String>,
pub title: String,
pub directory: String,
pub workspace_root: Option<String>,
pub origin_workspace_root: Option<String>,
pub attached_from_workspace: Option<String>,
pub attached_to_workspace: Option<String>,
pub attach_timestamp_ms: Option<u64>,
pub attach_reason: Option<String>,
pub time: SessionTime,
pub model: Option<ModelSpec>,
pub provider: Option<String>,
pub environment: Option<HostRuntimeContext>,
pub messages: Vec<Message>,
}Fields§
§id: String§slug: Option<String>§version: Option<String>§project_id: Option<String>§title: String§directory: String§workspace_root: Option<String>§origin_workspace_root: Option<String>§attached_from_workspace: Option<String>§attached_to_workspace: Option<String>§attach_timestamp_ms: Option<u64>§attach_reason: Option<String>§time: SessionTime§model: Option<ModelSpec>§provider: Option<String>§environment: Option<HostRuntimeContext>§messages: Vec<Message>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 Freeze 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