pub struct ReadResourceResultResponse {
pub id: RequestId,
pub result: ReadResourceResultResponseResult,
/* private fields */
}Expand description
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link ReadResourceRequestresources/read} request.
JSON schema
{
"description": "A successful response from the server for a {@link ReadResourceRequestresources/read} request.",
"type": "object",
"required": [
"id",
"jsonrpc",
"result"
],
"properties": {
"id": {
"$ref": "#/$defs/RequestId"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"result": {
"anyOf": [
{
"$ref": "#/$defs/InputRequiredResult"
},
{
"$ref": "#/$defs/ReadResourceResult"
}
]
}
}
}Fields§
§id: RequestId§result: ReadResourceResultResponseResultImplementations§
Trait Implementations§
Source§impl Clone for ReadResourceResultResponse
impl Clone for ReadResourceResultResponse
Source§fn clone(&self) -> ReadResourceResultResponse
fn clone(&self) -> ReadResourceResultResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadResourceResultResponse
impl Debug for ReadResourceResultResponse
Source§impl<'de> Deserialize<'de> for ReadResourceResultResponse
impl<'de> Deserialize<'de> for ReadResourceResultResponse
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 ReadResourceResultResponse
impl RefUnwindSafe for ReadResourceResultResponse
impl Send for ReadResourceResultResponse
impl Sync for ReadResourceResultResponse
impl Unpin for ReadResourceResultResponse
impl UnsafeUnpin for ReadResourceResultResponse
impl UnwindSafe for ReadResourceResultResponse
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