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 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 Default for ChatCompletionRequestSystemMessageContent
impl Default for ChatCompletionRequestSystemMessageContent
Source§fn default() -> ChatCompletionRequestSystemMessageContent
fn default() -> ChatCompletionRequestSystemMessageContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestSystemMessageContent
impl<'de> Deserialize<'de> for ChatCompletionRequestSystemMessageContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatCompletionRequestSystemMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatCompletionRequestSystemMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for ChatCompletionRequestSystemMessageContent
impl From<&str> for ChatCompletionRequestSystemMessageContent
Source§fn from(value: &str) -> ChatCompletionRequestSystemMessageContent
fn from(value: &str) -> ChatCompletionRequestSystemMessageContent
Converts to this type from the input type.
Source§impl From<ChatCompletionRequestSystemMessageContent> for ChatCompletionRequestSystemMessage
impl From<ChatCompletionRequestSystemMessageContent> for ChatCompletionRequestSystemMessage
Source§fn from(
value: ChatCompletionRequestSystemMessageContent,
) -> ChatCompletionRequestSystemMessage
fn from( value: ChatCompletionRequestSystemMessageContent, ) -> ChatCompletionRequestSystemMessage
Converts to this type from the input type.
Source§impl From<String> for ChatCompletionRequestSystemMessageContent
impl From<String> for ChatCompletionRequestSystemMessageContent
Source§fn from(value: String) -> ChatCompletionRequestSystemMessageContent
fn from(value: String) -> ChatCompletionRequestSystemMessageContent
Converts to this type from the input type.
Source§impl Serialize for ChatCompletionRequestSystemMessageContent
impl Serialize for ChatCompletionRequestSystemMessageContent
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 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 UnsafeUnpin 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