pub struct McpPromptDef {
pub name: String,
pub description: Option<String>,
pub arguments: Option<Vec<McpPromptArgDef>>,
pub handler: VmClosure,
}Expand description
A prompt template to serve over MCP.
Fields§
§name: String§description: Option<String>§arguments: Option<Vec<McpPromptArgDef>>§handler: VmClosureAuto Trait Implementations§
impl Freeze for McpPromptDef
impl !RefUnwindSafe for McpPromptDef
impl !Send for McpPromptDef
impl !Sync for McpPromptDef
impl Unpin for McpPromptDef
impl UnsafeUnpin for McpPromptDef
impl !UnwindSafe for McpPromptDef
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