pub enum ResponseFormatType {
Text,
JsonObject,
JsonSchema,
}Expand description
ResponseFormatType
JSON schema
{
"type": "string",
"enum": [
"text",
"json_object",
"json_schema"
]
}Variants§
Trait Implementations§
Source§impl Clone for ResponseFormatType
impl Clone for ResponseFormatType
Source§fn clone(&self) -> ResponseFormatType
fn clone(&self) -> ResponseFormatType
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 moreimpl Copy for ResponseFormatType
Source§impl Debug for ResponseFormatType
impl Debug for ResponseFormatType
Source§impl<'de> Deserialize<'de> for ResponseFormatType
impl<'de> Deserialize<'de> for ResponseFormatType
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 Display for ResponseFormatType
impl Display for ResponseFormatType
impl Eq for ResponseFormatType
Source§impl FromStr for ResponseFormatType
impl FromStr for ResponseFormatType
Source§impl Hash for ResponseFormatType
impl Hash for ResponseFormatType
Source§impl Ord for ResponseFormatType
impl Ord for ResponseFormatType
Source§fn cmp(&self, other: &ResponseFormatType) -> Ordering
fn cmp(&self, other: &ResponseFormatType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResponseFormatType
impl PartialEq for ResponseFormatType
Source§fn eq(&self, other: &ResponseFormatType) -> bool
fn eq(&self, other: &ResponseFormatType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResponseFormatType
impl PartialOrd for ResponseFormatType
Source§impl Serialize for ResponseFormatType
impl Serialize for ResponseFormatType
impl StructuralPartialEq for ResponseFormatType
Source§impl TryFrom<&String> for ResponseFormatType
impl TryFrom<&String> for ResponseFormatType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ResponseFormatType
impl TryFrom<&str> for ResponseFormatType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ResponseFormatType
impl TryFrom<String> for ResponseFormatType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ResponseFormatType
impl RefUnwindSafe for ResponseFormatType
impl Send for ResponseFormatType
impl Sync for ResponseFormatType
impl Unpin for ResponseFormatType
impl UnsafeUnpin for ResponseFormatType
impl UnwindSafe for ResponseFormatType
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