pub enum ModelInput {
Text(String),
Parts(Vec<ModelInputPart>),
}Expand description
Content of the input passed to a /v1/responses request.
Variants§
Trait Implementations§
Source§impl Clone for ModelInput
impl Clone for ModelInput
Source§fn clone(&self) -> ModelInput
fn clone(&self) -> ModelInput
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 ModelInput
impl Debug for ModelInput
Source§impl Default for ModelInput
impl Default for ModelInput
Source§impl<'de> Deserialize<'de> for ModelInput
impl<'de> Deserialize<'de> for ModelInput
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 ModelInput
impl PartialEq for ModelInput
Source§impl Serialize for ModelInput
impl Serialize for ModelInput
impl StructuralPartialEq for ModelInput
Auto Trait Implementations§
impl Freeze for ModelInput
impl RefUnwindSafe for ModelInput
impl Send for ModelInput
impl Sync for ModelInput
impl Unpin for ModelInput
impl UnwindSafe for ModelInput
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