pub struct Response {
pub jsonrpc: Version,
pub id: Value,
pub body: Body,
}👎Deprecated since 0.14.0:
hand-rolled JSON-RPC types existed only to serve act_types::mcp; use rmcp::model for MCP wire types. Scheduled for removal in 0.15.0.
Expand description
A JSON-RPC 2.0 response.
Fields§
§jsonrpc: Version👎Deprecated since 0.14.0:
§hand-rolled JSON-RPC types existed only to serve act_types::mcp; use rmcp::model for MCP wire types. Scheduled for removal in 0.15.0.
id: Value👎Deprecated since 0.14.0:
§hand-rolled JSON-RPC types existed only to serve act_types::mcp; use rmcp::model for MCP wire types. Scheduled for removal in 0.15.0.
body: Body👎Deprecated since 0.14.0:
hand-rolled JSON-RPC types existed only to serve act_types::mcp; use rmcp::model for MCP wire types. Scheduled for removal in 0.15.0.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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