pub struct Session {
pub id: String,
pub slug: Option<String>,
pub project_id: Option<String>,
pub workspace_id: Option<String>,
pub directory: Option<String>,
pub path: Option<String>,
pub parent_id: Option<String>,
pub title: String,
pub agent: Option<String>,
pub version: Option<String>,
pub time: Option<SessionTime>,
pub extra: BTreeMap<String, Value>,
}Expand description
A session returned by the legacy/current /session API.
Stable, commonly used fields are typed. Additional fields are retained so new upstream fields do not make an older SDK fail to deserialize.
Fields§
§id: String§slug: Option<String>§project_id: Option<String>§workspace_id: Option<String>§directory: Option<String>§path: Option<String>§parent_id: Option<String>§title: String§agent: Option<String>§version: Option<String>§time: Option<SessionTime>§extra: BTreeMap<String, Value>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