pub enum OpenAIContent {
Text(String),
Parts(Vec<OpenAIContentPart>),
}Expand description
OpenAI content format (text or multimodal).
Variants§
Text(String)
Parts(Vec<OpenAIContentPart>)
Trait Implementations§
Source§impl Clone for OpenAIContent
impl Clone for OpenAIContent
Source§fn clone(&self) -> OpenAIContent
fn clone(&self) -> OpenAIContent
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 OpenAIContent
impl RefUnwindSafe for OpenAIContent
impl Send for OpenAIContent
impl Sync for OpenAIContent
impl Unpin for OpenAIContent
impl UnwindSafe for OpenAIContent
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