pub enum ChatCompletionRequestSystemMessageContent {
Text(String),
Array(Vec<ChatCompletionRequestSystemMessageContentPart>),
}
Variants§
Text(String)
The text contents of the system message.
Array(Vec<ChatCompletionRequestSystemMessageContentPart>)
An array of content parts with a defined type. For system messages, only type text
is supported.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestSystemMessageContent
impl Clone for ChatCompletionRequestSystemMessageContent
Source§fn clone(&self) -> ChatCompletionRequestSystemMessageContent
fn clone(&self) -> ChatCompletionRequestSystemMessageContent
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<'de> Deserialize<'de> for ChatCompletionRequestSystemMessageContent
impl<'de> Deserialize<'de> for ChatCompletionRequestSystemMessageContent
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 From<ChatCompletionRequestSystemMessageContent> for ChatCompletionRequestSystemMessage
impl From<ChatCompletionRequestSystemMessageContent> for ChatCompletionRequestSystemMessage
Source§fn from(value: ChatCompletionRequestSystemMessageContent) -> Self
fn from(value: ChatCompletionRequestSystemMessageContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChatCompletionRequestSystemMessageContent
impl PartialEq for ChatCompletionRequestSystemMessageContent
Source§fn eq(&self, other: &ChatCompletionRequestSystemMessageContent) -> bool
fn eq(&self, other: &ChatCompletionRequestSystemMessageContent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestSystemMessageContent
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestSystemMessageContent
impl RefUnwindSafe for ChatCompletionRequestSystemMessageContent
impl Send for ChatCompletionRequestSystemMessageContent
impl Sync for ChatCompletionRequestSystemMessageContent
impl Unpin for ChatCompletionRequestSystemMessageContent
impl UnwindSafe for ChatCompletionRequestSystemMessageContent
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