pub enum ChatCompletionUserMessageContent {
Text(String),
Parts(Vec<ChatCompletionContentPart>),
}Expand description
Content of a user message (can be text or multimodal)
Variants§
Text(String)
Plain text content
Parts(Vec<ChatCompletionContentPart>)
Array of content parts (text and/or images)
Trait Implementations§
Source§impl Clone for ChatCompletionUserMessageContent
impl Clone for ChatCompletionUserMessageContent
Source§fn clone(&self) -> ChatCompletionUserMessageContent
fn clone(&self) -> ChatCompletionUserMessageContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ChatCompletionUserMessageContent
impl<'de> Deserialize<'de> for ChatCompletionUserMessageContent
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 ChatCompletionUserMessageContent
impl RefUnwindSafe for ChatCompletionUserMessageContent
impl Send for ChatCompletionUserMessageContent
impl Sync for ChatCompletionUserMessageContent
impl Unpin for ChatCompletionUserMessageContent
impl UnwindSafe for ChatCompletionUserMessageContent
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