pub struct ServerTasks {
pub cancel: Option<Map<String, Value>>,
pub list: Option<Map<String, Value>>,
pub requests: Option<ServerTaskRequest>,
}Expand description
Present if the server supports task-augmented requests.
JSON schema
{
"description": "Present if the server supports task-augmented requests.",
"type": "object",
"properties": {
"cancel": {
"description": "Whether this server supports tasks/cancel.",
"type": "object",
"additionalProperties": true
},
"list": {
"description": "Whether this server supports tasks/list.",
"type": "object",
"additionalProperties": true
},
"requests": {
"description": "Specifies which request types can be augmented with tasks.",
"type": "object",
"properties": {
"tools": {
"description": "Task support for tool-related requests.",
"type": "object",
"properties": {
"call": {
"description": "Whether the server supports task-augmented tools/call requests.",
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}Fields§
§cancel: Option<Map<String, Value>>Whether this server supports tasks/cancel.
list: Option<Map<String, Value>>Whether this server supports tasks/list.
requests: Option<ServerTaskRequest>Trait Implementations§
Source§impl Clone for ServerTasks
impl Clone for ServerTasks
Source§fn clone(&self) -> ServerTasks
fn clone(&self) -> ServerTasks
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerTasks
impl Debug for ServerTasks
Source§impl Default for ServerTasks
impl Default for ServerTasks
Source§fn default() -> ServerTasks
fn default() -> ServerTasks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerTasks
impl<'de> Deserialize<'de> for ServerTasks
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 ServerTasks
impl RefUnwindSafe for ServerTasks
impl Send for ServerTasks
impl Sync for ServerTasks
impl Unpin for ServerTasks
impl UnwindSafe for ServerTasks
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