pub struct ReadResourceRequestParams {
pub input_responses: Option<InputResponses>,
pub meta: RequestMetaObject,
pub request_state: Option<String>,
pub uri: String,
}Expand description
Latest MCP Protocol 2026_07_28 Parameters for a resources/read request.
JSON schema
{
"description": "Parameters for a resources/read request.",
"type": "object",
"required": [
"_meta",
"uri"
],
"properties": {
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
},
"inputResponses": {
"$ref": "#/$defs/InputResponses"
},
"requestState": {
"type": "string"
},
"uri": {
"description": "The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.",
"type": "string",
"format": "uri"
}
}
}Fields§
§input_responses: Option<InputResponses>§meta: RequestMetaObject§request_state: Option<String>§uri: StringThe URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.
Implementations§
Source§impl ReadResourceRequestParams
impl ReadResourceRequestParams
Sourcepub fn with_input_responses(self, input_responses: InputResponses) -> Self
pub fn with_input_responses(self, input_responses: InputResponses) -> Self
Sets the resolved inputResponses for retrying this request after an
input_required result.
Sourcepub fn with_request_state<T: Into<String>>(self, request_state: T) -> Self
pub fn with_request_state<T: Into<String>>(self, request_state: T) -> Self
Sets the opaque requestState returned by the server, so it can
correlate the retry with the original request.
Trait Implementations§
Source§impl Clone for ReadResourceRequestParams
impl Clone for ReadResourceRequestParams
Source§fn clone(&self) -> ReadResourceRequestParams
fn clone(&self) -> ReadResourceRequestParams
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 ReadResourceRequestParams
impl Debug for ReadResourceRequestParams
Source§impl<'de> Deserialize<'de> for ReadResourceRequestParams
impl<'de> Deserialize<'de> for ReadResourceRequestParams
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 ReadResourceRequestParams
impl RefUnwindSafe for ReadResourceRequestParams
impl Send for ReadResourceRequestParams
impl Sync for ReadResourceRequestParams
impl Unpin for ReadResourceRequestParams
impl UnsafeUnpin for ReadResourceRequestParams
impl UnwindSafe for ReadResourceRequestParams
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