pub struct PromptHandler;
Expand description
Handler for prompt-related requests
Implementations§
Source§impl PromptHandler
impl PromptHandler
Sourcepub async fn handle_list(
prompts: &HashMap<String, Prompt>,
params: Option<Value>,
) -> McpResult<ListPromptsResult>
pub async fn handle_list( prompts: &HashMap<String, Prompt>, params: Option<Value>, ) -> McpResult<ListPromptsResult>
Handle prompts/list request
Sourcepub async fn handle_get(
prompts: &HashMap<String, Prompt>,
params: Option<Value>,
) -> McpResult<GetPromptResult>
pub async fn handle_get( prompts: &HashMap<String, Prompt>, params: Option<Value>, ) -> McpResult<GetPromptResult>
Handle prompts/get request
Auto Trait Implementations§
impl Freeze for PromptHandler
impl RefUnwindSafe for PromptHandler
impl Send for PromptHandler
impl Sync for PromptHandler
impl Unpin for PromptHandler
impl UnwindSafe for PromptHandler
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