pub struct ServerCapabilities {
pub experimental: Option<HashMap<String, Map<String, Value>>>,
pub logging: Option<Map<String, Value>>,
pub prompts: Option<ServerCapabilitiesPrompts>,
pub resources: Option<ServerCapabilitiesResources>,
pub tools: Option<ServerCapabilitiesTools>,
}
Expand description
Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
JSON schema
{
"description": "Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.",
"type": "object",
"properties": {
"experimental": {
"description": "Experimental, non-standard capabilities that the server supports.",
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": true
}
},
"logging": {
"description": "Present if the server supports sending log messages to the client.",
"type": "object",
"additionalProperties": true
},
"prompts": {
"description": "Present if the server offers any prompt templates.",
"type": "object",
"properties": {
"listChanged": {
"description": "Whether this server supports notifications for changes to the prompt list.",
"type": "boolean"
}
}
},
"resources": {
"description": "Present if the server offers any resources to read.",
"type": "object",
"properties": {
"listChanged": {
"description": "Whether this server supports notifications for changes to the resource list.",
"type": "boolean"
},
"subscribe": {
"description": "Whether this server supports subscribing to resource updates.",
"type": "boolean"
}
}
},
"tools": {
"description": "Present if the server offers any tools to call.",
"type": "object",
"properties": {
"listChanged": {
"description": "Whether this server supports notifications for changes to the tool list.",
"type": "boolean"
}
}
}
}
}
Fields§
§experimental: Option<HashMap<String, Map<String, Value>>>
Experimental, non-standard capabilities that the server supports.
logging: Option<Map<String, Value>>
Present if the server supports sending log messages to the client.
prompts: Option<ServerCapabilitiesPrompts>
§resources: Option<ServerCapabilitiesResources>
§tools: Option<ServerCapabilitiesTools>
Trait Implementations§
Source§impl Clone for ServerCapabilities
impl Clone for ServerCapabilities
Source§fn clone(&self) -> ServerCapabilities
fn clone(&self) -> ServerCapabilities
Returns a copy 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 ServerCapabilities
impl Debug for ServerCapabilities
Source§impl<'de> Deserialize<'de> for ServerCapabilities
impl<'de> Deserialize<'de> for ServerCapabilities
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 ServerCapabilities
impl RefUnwindSafe for ServerCapabilities
impl Send for ServerCapabilities
impl Sync for ServerCapabilities
impl Unpin for ServerCapabilities
impl UnwindSafe for ServerCapabilities
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