pub struct DiscoverResult {
pub supported_versions: Vec<String>,
pub capabilities: ServerCapabilities,
pub server_info: Implementation,
pub instructions: Option<String>,
pub meta: Option<Value>,
}Expand description
Result of the server/discover RPC (SEP-2575).
Shape mirrors InitializeResult with the singular protocol_version
replaced by supported_versions – a server/discover call is
version-independent, so the server enumerates every version it can
speak and the client picks.
Fields§
§supported_versions: Vec<String>All protocol versions this server can speak. The client picks one
and signals it via MCP-Protocol-Version on subsequent requests.
capabilities: ServerCapabilitiesServer capabilities (same shape as the initialize result).
server_info: ImplementationServer implementation info.
instructions: Option<String>Optional instructions describing how to use this server.
meta: Option<Value>Optional protocol-level metadata.
Trait Implementations§
Source§impl Clone for DiscoverResult
impl Clone for DiscoverResult
Source§fn clone(&self) -> DiscoverResult
fn clone(&self) -> DiscoverResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscoverResult
impl Debug for DiscoverResult
Source§impl<'de> Deserialize<'de> for DiscoverResult
impl<'de> Deserialize<'de> for DiscoverResult
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 DiscoverResult
impl RefUnwindSafe for DiscoverResult
impl Send for DiscoverResult
impl Sync for DiscoverResult
impl Unpin for DiscoverResult
impl UnsafeUnpin for DiscoverResult
impl UnwindSafe for DiscoverResult
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