pub struct CreateSession {Show 16 fields
pub id: Option<SessionId>,
pub tenant_id: Option<String>,
pub persona: Option<String>,
pub parent_session_id: Option<SessionId>,
pub title: Option<String>,
pub title_pinned: bool,
pub cwd: Option<String>,
pub model: Option<String>,
pub session_type: Option<SessionType>,
pub project_scope: Option<String>,
pub usage_input: u64,
pub usage_output: u64,
pub usage_cost_usd_micros: u64,
pub ttl_seconds: Option<u64>,
pub tags: Vec<String>,
pub attributes: BTreeMap<String, Value>,
}Fields§
§id: Option<SessionId>§tenant_id: Option<String>§persona: Option<String>§parent_session_id: Option<SessionId>§title: Option<String>§title_pinned: boolSeed a session whose title is already a person’s choice, so a rename against a not-yet-persisted session survives its first derived write.
cwd: Option<String>§model: Option<String>§session_type: Option<SessionType>§project_scope: Option<String>§usage_input: u64§usage_output: u64§usage_cost_usd_micros: u64§ttl_seconds: Option<u64>§attributes: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for CreateSession
impl Clone for CreateSession
Source§fn clone(&self) -> CreateSession
fn clone(&self) -> CreateSession
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 CreateSession
impl Debug for CreateSession
Source§impl Default for CreateSession
impl Default for CreateSession
Source§fn default() -> CreateSession
fn default() -> CreateSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateSession
impl<'de> Deserialize<'de> for CreateSession
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 Eq for CreateSession
Source§impl PartialEq for CreateSession
impl PartialEq for CreateSession
Source§impl Serialize for CreateSession
impl Serialize for CreateSession
impl StructuralPartialEq for CreateSession
Auto Trait Implementations§
impl Freeze for CreateSession
impl RefUnwindSafe for CreateSession
impl Send for CreateSession
impl Sync for CreateSession
impl Unpin for CreateSession
impl UnsafeUnpin for CreateSession
impl UnwindSafe for CreateSession
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