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