pub struct McpPrompt {
pub name: String,
pub description: Option<String>,
pub arguments: Vec<McpPromptArgument>,
}Available on crate feature
mcp only.Expand description
An MCP prompt descriptor as returned by prompts/list.
Fields§
§name: StringPrompt name (used to fetch the prompt via prompts/get).
description: Option<String>Optional prompt description.
arguments: Vec<McpPromptArgument>Declared prompt arguments.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpPrompt
impl<'de> Deserialize<'de> for McpPrompt
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 McpPrompt
impl RefUnwindSafe for McpPrompt
impl Send for McpPrompt
impl Sync for McpPrompt
impl Unpin for McpPrompt
impl UnsafeUnpin for McpPrompt
impl UnwindSafe for McpPrompt
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