pub enum ChatCompletionRequestUserMessageContent {
Text(String),
Array(Vec<ChatCompletionRequestUserMessageContentPart>),
}Variants§
Text(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 copy 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 Default for ChatCompletionRequestUserMessageContent
impl Default for ChatCompletionRequestUserMessageContent
Source§fn default() -> ChatCompletionRequestUserMessageContent
fn default() -> ChatCompletionRequestUserMessageContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestUserMessageContent
impl<'de> Deserialize<'de> for ChatCompletionRequestUserMessageContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatCompletionRequestUserMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatCompletionRequestUserMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for ChatCompletionRequestUserMessageContent
impl From<&str> for ChatCompletionRequestUserMessageContent
Source§fn from(value: &str) -> ChatCompletionRequestUserMessageContent
fn from(value: &str) -> ChatCompletionRequestUserMessageContent
Converts to this type from the input type.
Source§impl From<String> for ChatCompletionRequestUserMessageContent
impl From<String> for ChatCompletionRequestUserMessageContent
Source§fn from(value: String) -> ChatCompletionRequestUserMessageContent
fn from(value: String) -> ChatCompletionRequestUserMessageContent
Converts to this type from the input type.
Source§impl From<Vec<ChatCompletionRequestUserMessageContentPart>> for ChatCompletionRequestUserMessageContent
impl From<Vec<ChatCompletionRequestUserMessageContentPart>> for ChatCompletionRequestUserMessageContent
Source§fn from(
value: Vec<ChatCompletionRequestUserMessageContentPart>,
) -> ChatCompletionRequestUserMessageContent
fn from( value: Vec<ChatCompletionRequestUserMessageContentPart>, ) -> ChatCompletionRequestUserMessageContent
Converts to this type from the input type.
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 ==.Source§impl Serialize for ChatCompletionRequestUserMessageContent
impl Serialize for ChatCompletionRequestUserMessageContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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