pub enum AnthropicMessageContent {
Text {
content: String,
},
Blocks {
content: Vec<AnthropicContentBlock>,
},
}Expand description
Message content – either a plain string or an array of content blocks.
Variants§
Text
Plain text content.
Blocks
Array of structured content blocks.
Fields
§
content: Vec<AnthropicContentBlock>Trait Implementations§
Source§impl Clone for AnthropicMessageContent
impl Clone for AnthropicMessageContent
Source§fn clone(&self) -> AnthropicMessageContent
fn clone(&self) -> AnthropicMessageContent
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 AnthropicMessageContent
impl Debug for AnthropicMessageContent
Source§impl<'de> Deserialize<'de> for AnthropicMessageContent
impl<'de> Deserialize<'de> for AnthropicMessageContent
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 AnthropicMessageContent
impl RefUnwindSafe for AnthropicMessageContent
impl Send for AnthropicMessageContent
impl Sync for AnthropicMessageContent
impl Unpin for AnthropicMessageContent
impl UnsafeUnpin for AnthropicMessageContent
impl UnwindSafe for AnthropicMessageContent
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