pub struct AnthropicMessage {
pub role: AnthropicRole,
pub content: AnthropicMessageContent,
}Expand description
A single message in the conversation.
Fields§
§role: AnthropicRole§content: AnthropicMessageContentTrait Implementations§
Source§impl Clone for AnthropicMessage
impl Clone for AnthropicMessage
Source§fn clone(&self) -> AnthropicMessage
fn clone(&self) -> AnthropicMessage
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 AnthropicMessage
impl Debug for AnthropicMessage
Source§impl<'de> Deserialize<'de> for AnthropicMessage
impl<'de> Deserialize<'de> for AnthropicMessage
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
Auto Trait Implementations§
impl Freeze for AnthropicMessage
impl RefUnwindSafe for AnthropicMessage
impl Send for AnthropicMessage
impl Sync for AnthropicMessage
impl Unpin for AnthropicMessage
impl UnsafeUnpin for AnthropicMessage
impl UnwindSafe for AnthropicMessage
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