pub enum CreateResponseInput {
String(String),
Array(Vec<InputItem>),
}
Expand description
Text, image, or file inputs to the model, used to generate a response.
Learn more:
Variants§
String(String)
A text input to the model, equivalent to a text input with the
user
role.
Array(Vec<InputItem>)
A list of one or many input items to the model, containing different content types.
Trait Implementations§
Source§impl Clone for CreateResponseInput
impl Clone for CreateResponseInput
Source§fn clone(&self) -> CreateResponseInput
fn clone(&self) -> CreateResponseInput
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 CreateResponseInput
impl Debug for CreateResponseInput
Source§impl<'de> Deserialize<'de> for CreateResponseInput
impl<'de> Deserialize<'de> for CreateResponseInput
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 PartialEq for CreateResponseInput
impl PartialEq for CreateResponseInput
Source§impl Serialize for CreateResponseInput
impl Serialize for CreateResponseInput
impl StructuralPartialEq for CreateResponseInput
Auto Trait Implementations§
impl Freeze for CreateResponseInput
impl RefUnwindSafe for CreateResponseInput
impl Send for CreateResponseInput
impl Sync for CreateResponseInput
impl Unpin for CreateResponseInput
impl UnwindSafe for CreateResponseInput
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