#[non_exhaustive]pub enum ResponseInput {
Text(String),
Messages(Vec<ResponseInputItem>),
Items(Vec<Value>),
}Expand description
Input for the Responses API — text or structured items.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
Plain text input.
Messages(Vec<ResponseInputItem>)
Structured message list.
Items(Vec<Value>)
Raw items array — for mixed types (messages + function_call_output).
Trait Implementations§
Source§impl Clone for ResponseInput
impl Clone for ResponseInput
Source§fn clone(&self) -> ResponseInput
fn clone(&self) -> ResponseInput
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 ResponseInput
impl Debug for ResponseInput
Source§impl From<&str> for ResponseInput
impl From<&str> for ResponseInput
Source§impl From<String> for ResponseInput
impl From<String> for ResponseInput
Auto Trait Implementations§
impl Freeze for ResponseInput
impl RefUnwindSafe for ResponseInput
impl Send for ResponseInput
impl Sync for ResponseInput
impl Unpin for ResponseInput
impl UnsafeUnpin for ResponseInput
impl UnwindSafe for ResponseInput
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