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§fn clone(&self) -> PromptReply
fn clone(&self) -> PromptReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>) -> PromptReply
fn from(messages: Vec<PromptMessage>) -> PromptReply
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