pub enum ChatCompletionRequestUserMessageContent {
String(String),
Array(Vec<ChatCompletionRequestUserMessageContentPart>),
}
Expand description
The contents of the user message.
Variants§
String(String)
The text contents of the message.
Array(Vec<ChatCompletionRequestUserMessageContentPart>)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestUserMessageContent
impl Clone for ChatCompletionRequestUserMessageContent
Source§fn clone(&self) -> ChatCompletionRequestUserMessageContent
fn clone(&self) -> ChatCompletionRequestUserMessageContent
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 ChatCompletionRequestUserMessageContent
impl<'de> Deserialize<'de> for ChatCompletionRequestUserMessageContent
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
Source§impl PartialEq for ChatCompletionRequestUserMessageContent
impl PartialEq for ChatCompletionRequestUserMessageContent
Source§fn eq(&self, other: &ChatCompletionRequestUserMessageContent) -> bool
fn eq(&self, other: &ChatCompletionRequestUserMessageContent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestUserMessageContent
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestUserMessageContent
impl RefUnwindSafe for ChatCompletionRequestUserMessageContent
impl Send for ChatCompletionRequestUserMessageContent
impl Sync for ChatCompletionRequestUserMessageContent
impl Unpin for ChatCompletionRequestUserMessageContent
impl UnwindSafe for ChatCompletionRequestUserMessageContent
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