pub struct ServerCapabilities {
pub completions: Option<Map<String, Value>>,
pub experimental: Option<IndexMap<String, Map<String, Value>>>,
pub logging: Option<Map<String, Value>>,
pub prompts: Option<ServerCapabilitiesPrompts>,
pub resources: Option<ServerCapabilitiesResources>,
pub tools: Option<ServerCapabilitiesTools>,
pub extra: Map<String, Value>,
}
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.
Fields§
§completions: Option<Map<String, Value>>
Present if the server supports argument autocompletion suggestions.
experimental: Option<IndexMap<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>
Present if the server offers any prompt templates.
resources: Option<ServerCapabilitiesResources>
Present if the server offers any resources to read.
tools: Option<ServerCapabilitiesTools>
Present if the server offers any tools to call.
extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for ServerCapabilities
impl Clone for ServerCapabilities
Source§fn clone(&self) -> ServerCapabilities
fn clone(&self) -> ServerCapabilities
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 ServerCapabilities
impl Debug for ServerCapabilities
Source§impl Default for ServerCapabilities
impl Default for ServerCapabilities
Source§fn default() -> ServerCapabilities
fn default() -> ServerCapabilities
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for ServerCapabilities
impl PartialEq for ServerCapabilities
Source§impl Serialize for ServerCapabilities
impl Serialize for ServerCapabilities
impl StructuralPartialEq for ServerCapabilities
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