pub struct MCPResponse {
pub jsonrpc: String,
pub id: Option<Value>,
pub result: Option<Value>,
pub error: Option<MCPError>,
}Fields§
§jsonrpc: String§id: Option<Value>§result: Option<Value>§error: Option<MCPError>Trait Implementations§
Source§impl Debug for MCPResponse
impl Debug for MCPResponse
Source§impl<'de> Deserialize<'de> for MCPResponse
impl<'de> Deserialize<'de> for MCPResponse
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 MCPResponse
impl RefUnwindSafe for MCPResponse
impl Send for MCPResponse
impl Sync for MCPResponse
impl Unpin for MCPResponse
impl UnwindSafe for MCPResponse
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