pub struct McpError {
pub code: i32,
pub message: String,
pub data: Option<Value>,
}Expand description
Standard MCP error body.
Fields§
§code: i32JSON-RPC error code. Common values: -32700 parse, -32600 invalid request, -32601 method not found, -32602 invalid params, -32603 internal error.
message: StringHuman-readable error message.
data: Option<Value>Optional structured data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpError
impl RefUnwindSafe for McpError
impl Send for McpError
impl Sync for McpError
impl Unpin for McpError
impl UnsafeUnpin for McpError
impl UnwindSafe for McpError
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