pub struct JsonRpcResponse {
pub jsonrpc: &'static str,
pub id: Option<Value>,
pub result: Option<Value>,
pub error: Option<JsonRpcError>,
}Expand description
Outgoing JSON-RPC envelope. result and error are mutually
exclusive — exactly one is Some per MCP 2025-06-18.
Fields§
§jsonrpc: &'static str§id: Option<Value>§result: Option<Value>§error: Option<JsonRpcError>Trait Implementations§
Source§impl Debug for JsonRpcResponse
impl Debug for JsonRpcResponse
Auto Trait Implementations§
impl Freeze for JsonRpcResponse
impl RefUnwindSafe for JsonRpcResponse
impl Send for JsonRpcResponse
impl Sync for JsonRpcResponse
impl Unpin for JsonRpcResponse
impl UnsafeUnpin for JsonRpcResponse
impl UnwindSafe for JsonRpcResponse
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