pub struct SessionUpdate {
pub model: Option<ModelSpec>,
pub permission_mode: Option<PermissionMode>,
pub title: Option<String>,
}Expand description
Partial update to a live session’s mutable state. Each field is optional so a caller patches only what changed; absent fields are left untouched. Catalog-dependent fields are resolved before the update takes effect.
Fields§
§model: Option<ModelSpec>Model change, taking effect on the next turn. The spec carries the
whole request, effort included: a set effort overrides the
catalog default; unset fields resolve from the catalog.
permission_mode: Option<PermissionMode>Permission mode change, taking effect on the next turn without aborting an in-flight one.
title: Option<String>Rename the session. The text is trimmed; an empty (or whitespace-only) text clears the title.
Trait Implementations§
Source§impl Clone for SessionUpdate
impl Clone for SessionUpdate
Source§impl Debug for SessionUpdate
impl Debug for SessionUpdate
Source§impl Default for SessionUpdate
impl Default for SessionUpdate
Source§impl<'de> Deserialize<'de> for SessionUpdate
impl<'de> Deserialize<'de> for SessionUpdate
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 SessionUpdate
impl RefUnwindSafe for SessionUpdate
impl Send for SessionUpdate
impl Sync for SessionUpdate
impl Unpin for SessionUpdate
impl UnsafeUnpin for SessionUpdate
impl UnwindSafe for SessionUpdate
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