pub struct McpPromptDescriptor {
pub id: String,
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
pub metadata: MetadataMap,
}Expand description
Descriptor for a prompt template advertised by an MCP server.
Prompts are reusable message templates that can be parameterized with arguments.
The input_schema describes the expected arguments.
Fields§
§id: StringUnique identifier for the prompt (typically the same as name).
name: StringHuman-readable name of the prompt.
description: Option<String>Optional description of what the prompt does.
input_schema: ValueJSON Schema describing the prompt’s input arguments.
metadata: MetadataMapArbitrary metadata attached to this descriptor.
Trait Implementations§
Source§impl Clone for McpPromptDescriptor
impl Clone for McpPromptDescriptor
Source§fn clone(&self) -> McpPromptDescriptor
fn clone(&self) -> McpPromptDescriptor
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 McpPromptDescriptor
impl Debug for McpPromptDescriptor
Source§impl<'de> Deserialize<'de> for McpPromptDescriptor
impl<'de> Deserialize<'de> for McpPromptDescriptor
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
Source§impl PartialEq for McpPromptDescriptor
impl PartialEq for McpPromptDescriptor
Source§impl Serialize for McpPromptDescriptor
impl Serialize for McpPromptDescriptor
impl StructuralPartialEq for McpPromptDescriptor
Auto Trait Implementations§
impl Freeze for McpPromptDescriptor
impl RefUnwindSafe for McpPromptDescriptor
impl Send for McpPromptDescriptor
impl Sync for McpPromptDescriptor
impl Unpin for McpPromptDescriptor
impl UnsafeUnpin for McpPromptDescriptor
impl UnwindSafe for McpPromptDescriptor
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