pub struct PromptDefinition {
pub prompt: Prompt,
pub handler: Arc<dyn Fn(GetPromptRequest) -> Pin<Box<dyn Future<Output = McpResult<GetPromptResult>> + Send + 'static>> + Send + Sync + 'static>,
}Expand description
Prompt definition from a plugin
Fields§
§prompt: Prompt§handler: Arc<dyn Fn(GetPromptRequest) -> Pin<Box<dyn Future<Output = McpResult<GetPromptResult>> + Send + 'static>> + Send + Sync + 'static>Implementations§
Auto Trait Implementations§
impl Freeze for PromptDefinition
impl !RefUnwindSafe for PromptDefinition
impl Send for PromptDefinition
impl Sync for PromptDefinition
impl Unpin for PromptDefinition
impl UnsafeUnpin for PromptDefinition
impl !UnwindSafe for PromptDefinition
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