pub struct DurableState {
pub plan: Option<PlanState>,
pub todos: Vec<TodoItem>,
pub activated_tools: Vec<String>,
}Expand description
The part of a session’s state that outlives its engine: what the model set up for itself, which an engine brought back from the log must still hold. The rest is derived from settings again or ends with the engine.
Fields§
§plan: Option<PlanState>§todos: Vec<TodoItem>§activated_tools: Vec<String>The deferred tools ToolSearch loaded, sorted.
Trait Implementations§
Source§impl Clone for DurableState
impl Clone for DurableState
Source§impl Debug for DurableState
impl Debug for DurableState
Source§impl Default for DurableState
impl Default for DurableState
Source§impl<'de> Deserialize<'de> for DurableState
impl<'de> Deserialize<'de> for DurableState
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
Source§impl PartialEq for DurableState
impl PartialEq for DurableState
Source§impl Serialize for DurableState
impl Serialize for DurableState
impl StructuralPartialEq for DurableState
Auto Trait Implementations§
impl Forget for DurableState
impl Freeze for DurableState
impl Move for DurableState
impl RefUnwindSafe for DurableState
impl Send for DurableStatewhere
RawVecInner: Send,
impl Sync for DurableStatewhere
RawVecInner: Sync,
impl Unpin for DurableState
impl UnsafeUnpin for DurableStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<TodoItem>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for DurableStatewhere
RawVecInner: UnwindSafe,
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