pub struct GetPromptRequestParams {
pub arguments: Option<HashMap<String, String>>,
pub meta: Option<GetPromptMeta>,
pub name: String,
}Expand description
Parameters for a prompts/get request.
JSON schema
{
"description": "Parameters for a prompts/get request.",
"type": "object",
"required": [
"name"
],
"properties": {
"_meta": {
"description": "See [General fields: _meta](https://modelcontextprotocol.io/specification/2025-11-25/basic/index#meta) for notes on _meta usage.",
"type": "object",
"properties": {
"progressToken": {
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.",
"$ref": "#/$defs/ProgressToken"
}
},
"additionalProperties": {}
},
"arguments": {
"description": "Arguments to use for templating the prompt.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"description": "The name of the prompt or prompt template.",
"type": "string"
}
}
}Fields§
§arguments: Option<HashMap<String, String>>Arguments to use for templating the prompt.
meta: Option<GetPromptMeta>§name: StringThe name of the prompt or prompt template.
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 · 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 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