pub enum AnthropicRole {
User,
Assistant,
System,
}Expand description
The role of a message sender.
Variants§
User
Assistant
System
Compatibility for clients that place system instructions in messages[]
instead of the top-level system field.
Trait Implementations§
Source§impl Clone for AnthropicRole
impl Clone for AnthropicRole
Source§fn clone(&self) -> AnthropicRole
fn clone(&self) -> AnthropicRole
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 AnthropicRole
impl Debug for AnthropicRole
Source§impl<'de> Deserialize<'de> for AnthropicRole
impl<'de> Deserialize<'de> for AnthropicRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnthropicRole
Source§impl PartialEq for AnthropicRole
impl PartialEq for AnthropicRole
Source§impl Serialize for AnthropicRole
impl Serialize for AnthropicRole
impl StructuralPartialEq for AnthropicRole
Auto Trait Implementations§
impl Freeze for AnthropicRole
impl RefUnwindSafe for AnthropicRole
impl Send for AnthropicRole
impl Sync for AnthropicRole
impl Unpin for AnthropicRole
impl UnsafeUnpin for AnthropicRole
impl UnwindSafe for AnthropicRole
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