pub enum UpstreamInputContent {
InputText(InputTextContent),
InputImage(InputImageContent),
InputFile(InputFileContent),
}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 (const: unstable) · 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<InputContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputContent, <__D as Deserializer<'de>>::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) -> ResponsePromptVariables
fn from(content: InputContent) -> ResponsePromptVariables
Converts to this type from the input type.
Source§impl From<InputFileContent> for InputContent
impl From<InputFileContent> for InputContent
Source§fn from(content: InputFileContent) -> InputContent
fn from(content: InputFileContent) -> InputContent
Converts to this type from the input type.
Source§impl From<InputImageContent> for InputContent
impl From<InputImageContent> for InputContent
Source§fn from(content: InputImageContent) -> InputContent
fn from(content: InputImageContent) -> InputContent
Converts to this type from the input type.
Source§impl From<InputTextContent> for InputContent
impl From<InputTextContent> for InputContent
Source§fn from(content: InputTextContent) -> InputContent
fn from(content: InputTextContent) -> InputContent
Converts to this type from the input type.
Source§impl<S> From<S> for InputContent
impl<S> From<S> for InputContent
Source§fn from(text: S) -> InputContent
fn from(text: S) -> InputContent
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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