pub enum ResponsesInput {
Text(String),
Items(Vec<ResponseItem>),
}Expand description
input: a bare string (one user message) or an array of items. Untagged so it
serialises as a bare string or a bare array, matching the wire.
Variants§
Text(String)
Items(Vec<ResponseItem>)
Trait Implementations§
Source§impl Clone for ResponsesInput
impl Clone for ResponsesInput
Source§fn clone(&self) -> ResponsesInput
fn clone(&self) -> ResponsesInput
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 ResponsesInput
impl Debug for ResponsesInput
Source§impl<'de> Deserialize<'de> for ResponsesInput
impl<'de> Deserialize<'de> for ResponsesInput
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<&str> for ResponsesInput
impl From<&str> for ResponsesInput
Source§impl From<String> for ResponsesInput
impl From<String> for ResponsesInput
Source§impl From<Vec<ResponseItem>> for ResponsesInput
impl From<Vec<ResponseItem>> for ResponsesInput
Source§fn from(items: Vec<ResponseItem>) -> Self
fn from(items: Vec<ResponseItem>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponsesInput
impl PartialEq for ResponsesInput
Source§impl Serialize for ResponsesInput
impl Serialize for ResponsesInput
impl StructuralPartialEq for ResponsesInput
Auto Trait Implementations§
impl Freeze for ResponsesInput
impl RefUnwindSafe for ResponsesInput
impl Send for ResponsesInput
impl Sync for ResponsesInput
impl Unpin for ResponsesInput
impl UnsafeUnpin for ResponsesInput
impl UnwindSafe for ResponsesInput
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