pub enum PartibleTextContent {
Text(String),
Array(Vec<TextObject>),
}
Variants§
Text(String)
The text contents of the message.
Array(Vec<TextObject>)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
Implementations§
Trait Implementations§
Source§impl Clone for PartibleTextContent
impl Clone for PartibleTextContent
Source§fn clone(&self) -> PartibleTextContent
fn clone(&self) -> PartibleTextContent
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 moreSource§impl Debug for PartibleTextContent
impl Debug for PartibleTextContent
Source§impl Default for PartibleTextContent
impl Default for PartibleTextContent
Source§impl<'de> Deserialize<'de> for PartibleTextContent
impl<'de> Deserialize<'de> for PartibleTextContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PartibleTextContent
impl Display for PartibleTextContent
Source§impl From<&str> for PartibleTextContent
impl From<&str> for PartibleTextContent
Source§impl From<PartibleTextContent> for ChatCompletionRequestDeveloperMessage
impl From<PartibleTextContent> for ChatCompletionRequestDeveloperMessage
Source§fn from(value: PartibleTextContent) -> Self
fn from(value: PartibleTextContent) -> Self
Converts to this type from the input type.
Source§impl From<PartibleTextContent> for ChatCompletionRequestSystemMessage
impl From<PartibleTextContent> for ChatCompletionRequestSystemMessage
Source§fn from(value: PartibleTextContent) -> Self
fn from(value: PartibleTextContent) -> Self
Converts to this type from the input type.
Source§impl From<String> for PartibleTextContent
impl From<String> for PartibleTextContent
Source§impl PartialEq for PartibleTextContent
impl PartialEq for PartibleTextContent
Source§impl Serialize for PartibleTextContent
impl Serialize for PartibleTextContent
impl StructuralPartialEq for PartibleTextContent
Auto Trait Implementations§
impl Freeze for PartibleTextContent
impl RefUnwindSafe for PartibleTextContent
impl Send for PartibleTextContent
impl Sync for PartibleTextContent
impl Unpin for PartibleTextContent
impl UnwindSafe for PartibleTextContent
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