pub struct ServerCapabilities {
pub logging: Option<HashMap<String, Value>>,
pub prompts: Option<HashMap<String, bool>>,
pub resources: Option<HashMap<String, bool>>,
pub tools: Option<HashMap<String, bool>>,
pub experimental: Option<HashMap<String, Value>>,
}
Expand description
Server capabilities negotiated during initialization
Fields§
§logging: Option<HashMap<String, Value>>
§prompts: Option<HashMap<String, bool>>
§resources: Option<HashMap<String, bool>>
§tools: Option<HashMap<String, bool>>
§experimental: Option<HashMap<String, Value>>
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 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
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