pub struct InputResponseRequestParams {
pub input_responses: Option<HashMap<String, InputResponse>>,
pub request_state: Option<String>,
}Expand description
Core MCP protocol types and error handling
Mixin shape that may appear on the params of any client-initiated request,
allowing the client to attach prior input responses + echoed request state.
InputResponseRequestParams extends RequestParams. Extended by
CallToolRequestParams, ReadResourceRequestParams, GetPromptRequestParams.
NOTE: this struct only models the mixin fields (inputResponses?,
requestState?). It does NOT carry the required _meta: RequestMetaObject
of RequestParams — embed it alongside
RequestParams (the schema’s extension model maps to Rust composition).
Fields§
§input_responses: Option<HashMap<String, InputResponse>>Responses to a prior InputRequiredResult. Keys match the original
inputRequests map.
request_state: Option<String>Verbatim echo of InputRequiredResult::request_state.
Implementations§
Source§impl InputResponseRequestParams
impl InputResponseRequestParams
Sourcepub fn with_responses(
responses: HashMap<String, InputResponse>,
) -> InputResponseRequestParams
pub fn with_responses( responses: HashMap<String, InputResponse>, ) -> InputResponseRequestParams
Construct with only responses.
Sourcepub fn with_state(state: impl Into<String>) -> InputResponseRequestParams
pub fn with_state(state: impl Into<String>) -> InputResponseRequestParams
Construct with only echoed state.
Sourcepub fn with_responses_and_state(
responses: HashMap<String, InputResponse>,
state: impl Into<String>,
) -> InputResponseRequestParams
pub fn with_responses_and_state( responses: HashMap<String, InputResponse>, state: impl Into<String>, ) -> InputResponseRequestParams
Construct with both.
Trait Implementations§
Source§impl Clone for InputResponseRequestParams
impl Clone for InputResponseRequestParams
Source§fn clone(&self) -> InputResponseRequestParams
fn clone(&self) -> InputResponseRequestParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more