pub struct PromptMessage {
pub role: &'static str,
pub content: McpContent,
}Expand description
A single message in a prompt response.
Fields§
§role: &'static str"user" or "assistant".
content: McpContentThe message content.
Implementations§
Trait Implementations§
Source§impl Clone for PromptMessage
impl Clone for PromptMessage
Auto Trait Implementations§
impl Freeze for PromptMessage
impl RefUnwindSafe for PromptMessage
impl Send for PromptMessage
impl Sync for PromptMessage
impl Unpin for PromptMessage
impl UnsafeUnpin for PromptMessage
impl UnwindSafe for PromptMessage
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