#[non_exhaustive]pub struct State {
pub session_id: String,
pub model: Option<String>,
pub thinking: Option<String>,
pub mode: Option<String>,
pub away: bool,
pub turn: TurnState,
pub open_requests: Vec<String>,
pub queued: u64,
pub context: ContextState,
}Expand description
get_state’s data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe session’s id.
model: Option<String>The model.
thinking: Option<String>The thinking level.
mode: Option<String>The mode.
away: boolWhether the running or next task is away.
turn: TurnStateThe running turn, if any.
open_requests: Vec<String>The ids of the open approval requests.
queued: u64Prompts waiting for their turn.
context: ContextStateThe context’s size.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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 State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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