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