pub struct ServerCapabilities {
pub prompts: Option<PromptsCapability>,
pub resources: Option<ResourcesCapability>,
pub tools: Option<ToolsCapability>,
pub logging: Option<LoggingCapability>,
pub experimental: BTreeMap<String, Value>,
}Expand description
The server’s capabilities.
The schema’s ServerCapabilities
is an open object; the typed
shape carries the canonical
sub-capabilities
(prompts, resources,
tools, logging).
Sub-capabilities the server
does not advertise default to
None, which the wire form
omits.
Fields§
§prompts: Option<PromptsCapability>The prompts capability.
resources: Option<ResourcesCapability>The resources capability.
tools: Option<ToolsCapability>The tools capability.
logging: Option<LoggingCapability>The logging capability.
experimental: BTreeMap<String, Value>Experimental capabilities. The schema does not constrain the shape; the typed default is an empty map.
Trait Implementations§
Source§impl Clone for ServerCapabilities
impl Clone for ServerCapabilities
Source§impl Debug for ServerCapabilities
impl Debug for ServerCapabilities
Source§impl Default for ServerCapabilities
impl Default 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
impl Eq for ServerCapabilities
Source§impl PartialEq for ServerCapabilities
impl PartialEq 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 UnsafeUnpin 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