pub trait ModelContextProtocolRequest {
type Params: DeserializeOwned + Serialize + Send + Sync + 'static;
type Result: DeserializeOwned + Serialize + Send + Sync + 'static;
const METHOD: &'static str;
}Expand description
Paired request/response types for the Model Context Protocol (MCP).
Required Associated Constants§
Required Associated Types§
type Params: DeserializeOwned + Serialize + Send + Sync + 'static
type Result: DeserializeOwned + Serialize + Send + Sync + 'static
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.