pub struct Session {Show 19 fields
pub agent: Option<String>,
pub cost: Option<f64>,
pub directory: String,
pub id: String,
pub metadata: Option<Map<String, Value>>,
pub model: Option<SessionCreateParamsModel>,
pub parent_id: Option<String>,
pub path: Option<String>,
pub permission: Option<PermissionRuleset>,
pub project_id: String,
pub revert: Option<SessionRevert>,
pub share: Option<SessionShare>,
pub slug: String,
pub summary: Option<SessionSummary>,
pub time: SessionTime,
pub title: String,
pub tokens: Option<SessionNextStepEndedDataTokens>,
pub version: String,
pub workspace_id: Option<String>,
}Fields§
§agent: Option<String>§cost: Option<f64>§directory: String§id: String§metadata: Option<Map<String, Value>>§model: Option<SessionCreateParamsModel>§parent_id: Option<String>§path: Option<String>§permission: Option<PermissionRuleset>§project_id: String§revert: Option<SessionRevert>§slug: String§summary: Option<SessionSummary>§time: SessionTime§title: String§tokens: Option<SessionNextStepEndedDataTokens>§version: String§workspace_id: Option<String>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
impl StructuralPartialEq for Session
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