pub enum AppRequest {
Capabilities,
ConfigGet {
key: String,
},
ConfigSet {
key: String,
value: String,
},
ConfigUnset {
key: String,
},
ConfigList,
Models,
ThreadLoadedList,
SubmitUserInput {
request_id: String,
answers: Vec<UserInputAnswerEvent>,
},
}Expand description
Application-level requests that are not tied to a specific thread.
Variants§
Capabilities
Query the server’s capabilities.
ConfigGet
Read a configuration value by key.
ConfigSet
Set a configuration key to a value.
ConfigUnset
Remove a configuration key.
ConfigList
List all configuration entries.
Models
List available models.
ThreadLoadedList
List threads that are currently loaded in memory.
SubmitUserInput
Submit answers to a prior EventFrame::UserInputRequest.
request_id must match a pending clarification request. Headless
clients use this to return the user’s selections back to the runtime.
Trait Implementations§
Source§impl Clone for AppRequest
impl Clone for AppRequest
Source§fn clone(&self) -> AppRequest
fn clone(&self) -> AppRequest
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 AppRequest
impl Debug for AppRequest
Source§impl<'de> Deserialize<'de> for AppRequest
impl<'de> Deserialize<'de> for AppRequest
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 AppRequest
impl RefUnwindSafe for AppRequest
impl Send for AppRequest
impl Sync for AppRequest
impl Unpin for AppRequest
impl UnsafeUnpin for AppRequest
impl UnwindSafe for AppRequest
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