pub enum PromptMessageRole {
User,
Assistant,
}Expand description
Re-exports of the rmcp wire-protocol types this crate now surfaces directly instead of wrapping. Pull these in to pattern-match on tool annotations, content blocks, structured tool output, embedded resources, sampling / elicitation requests, progress and log notifications, etc. Represents the role of a message sender in a prompt conversation
Variants§
Trait Implementations§
Source§impl Clone for PromptMessageRole
impl Clone for PromptMessageRole
Source§fn clone(&self) -> PromptMessageRole
fn clone(&self) -> PromptMessageRole
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 PromptMessageRole
impl Debug for PromptMessageRole
Source§impl<'de> Deserialize<'de> for PromptMessageRole
impl<'de> Deserialize<'de> for PromptMessageRole
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptMessageRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptMessageRole, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PromptMessageRole
impl PartialEq for PromptMessageRole
Source§fn eq(&self, other: &PromptMessageRole) -> bool
fn eq(&self, other: &PromptMessageRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptMessageRole
impl Serialize for PromptMessageRole
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PromptMessageRole
Auto Trait Implementations§
impl Freeze for PromptMessageRole
impl RefUnwindSafe for PromptMessageRole
impl Send for PromptMessageRole
impl Sync for PromptMessageRole
impl Unpin for PromptMessageRole
impl UnsafeUnpin for PromptMessageRole
impl UnwindSafe for PromptMessageRole
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