pub enum PromptReply {
Messages(Vec<PromptMessage>),
InputRequired(InputRequired),
}Expand description
What a prompt handler registered with
McpServer::prompt_with_context answers.
Variants§
Messages(Vec<PromptMessage>)
InputRequired(InputRequired)
Input from the client first (MCP 2026-07-28).
Trait Implementations§
Source§impl Clone for PromptReply
impl Clone for PromptReply
Source§impl Debug for PromptReply
impl Debug for PromptReply
Source§impl From<Vec<PromptMessage>> for PromptReply
impl From<Vec<PromptMessage>> for PromptReply
Source§fn from(messages: Vec<PromptMessage>) -> Self
fn from(messages: Vec<PromptMessage>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PromptReply
impl RefUnwindSafe for PromptReply
impl Send for PromptReply
impl Sync for PromptReply
impl Unpin for PromptReply
impl UnsafeUnpin for PromptReply
impl UnwindSafe for PromptReply
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