pub enum InputContent {
InputText(InputTextContent),
InputImage(InputImageContent),
InputFile(InputFileContent),
}Available on crate feature
response-types only.Expand description
Parts of a message: text, image, file, or audio.
Variants§
InputText(InputTextContent)
A text input to the model.
InputImage(InputImageContent)
An image input to the model. Learn about image inputs.
InputFile(InputFileContent)
A file input to the model.
Trait Implementations§
Source§impl Clone for InputContent
impl Clone for InputContent
Source§fn clone(&self) -> InputContent
fn clone(&self) -> InputContent
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 InputContent
impl Debug for InputContent
Source§impl<'de> Deserialize<'de> for InputContent
impl<'de> Deserialize<'de> for InputContent
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 From<InputContent> for ResponsePromptVariables
impl From<InputContent> for ResponsePromptVariables
Source§fn from(content: InputContent) -> Self
fn from(content: InputContent) -> Self
Converts to this type from the input type.
Source§impl From<InputFileContent> for InputContent
impl From<InputFileContent> for InputContent
Source§fn from(content: InputFileContent) -> Self
fn from(content: InputFileContent) -> Self
Converts to this type from the input type.
Source§impl From<InputImageContent> for InputContent
impl From<InputImageContent> for InputContent
Source§fn from(content: InputImageContent) -> Self
fn from(content: InputImageContent) -> Self
Converts to this type from the input type.
Source§impl From<InputTextContent> for InputContent
impl From<InputTextContent> for InputContent
Source§fn from(content: InputTextContent) -> Self
fn from(content: InputTextContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputContent
impl PartialEq for InputContent
Source§impl Serialize for InputContent
impl Serialize for InputContent
impl StructuralPartialEq for InputContent
Auto Trait Implementations§
impl Freeze for InputContent
impl RefUnwindSafe for InputContent
impl Send for InputContent
impl Sync for InputContent
impl Unpin for InputContent
impl UnwindSafe for InputContent
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