pub struct GetPromptRequestParams {
pub arguments: Option<BTreeMap<String, String>>,
pub input_responses: Option<InputResponses>,
pub meta: RequestMetaObject,
pub name: String,
pub request_state: Option<String>,
}Expand description
Latest MCP Protocol 2026_07_28 Parameters for a prompts/get request.
JSON schema
{
"description": "Parameters for a prompts/get request.",
"type": "object",
"required": [
"_meta",
"name"
],
"properties": {
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
},
"arguments": {
"description": "Arguments to use for templating the prompt.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"inputResponses": {
"$ref": "#/$defs/InputResponses"
},
"name": {
"description": "The name of the prompt or prompt template.",
"type": "string"
},
"requestState": {
"type": "string"
}
}
}Fields§
§arguments: Option<BTreeMap<String, String>>Arguments to use for templating the prompt.
input_responses: Option<InputResponses>§meta: RequestMetaObject§name: StringThe name of the prompt or prompt template.
request_state: Option<String>Implementations§
Source§impl GetPromptRequestParams
impl GetPromptRequestParams
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 GetPromptRequestParams
impl Clone for GetPromptRequestParams
Source§fn clone(&self) -> GetPromptRequestParams
fn clone(&self) -> GetPromptRequestParams
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 GetPromptRequestParams
impl Debug for GetPromptRequestParams
Source§impl<'de> Deserialize<'de> for GetPromptRequestParams
impl<'de> Deserialize<'de> for GetPromptRequestParams
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 GetPromptRequestParams
impl RefUnwindSafe for GetPromptRequestParams
impl Send for GetPromptRequestParams
impl Sync for GetPromptRequestParams
impl Unpin for GetPromptRequestParams
impl UnsafeUnpin for GetPromptRequestParams
impl UnwindSafe for GetPromptRequestParams
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