pub enum ChatCompletionRequestSystemMessage_Content {
Text(String),
Array(Vec<ChatCompletionRequestMessageContentPartText>),
}
Expand description
The contents of the system message.
Variants§
Text(String)
The contents of the system message.
Array(Vec<ChatCompletionRequestMessageContentPartText>)
An array of content parts with a defined type.
Implementations§
§impl ChatCompletionRequestSystemMessage_Content
impl ChatCompletionRequestSystemMessage_Content
pub fn text_content(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ChatCompletionRequestSystemMessage_Content
impl Clone for ChatCompletionRequestSystemMessage_Content
Source§fn clone(&self) -> ChatCompletionRequestSystemMessage_Content
fn clone(&self) -> ChatCompletionRequestSystemMessage_Content
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 moreAuto Trait Implementations§
impl Freeze for ChatCompletionRequestSystemMessage_Content
impl RefUnwindSafe for ChatCompletionRequestSystemMessage_Content
impl Send for ChatCompletionRequestSystemMessage_Content
impl Sync for ChatCompletionRequestSystemMessage_Content
impl Unpin for ChatCompletionRequestSystemMessage_Content
impl UnwindSafe for ChatCompletionRequestSystemMessage_Content
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