pub enum ResponseFormat {
Text,
JsonObject,
JsonSchema {
json_schema: ResponseFormatJsonSchema,
},
}
Variants§
Text
The type of response format being defined: text
JsonObject
The type of response format being defined: json_object
JsonSchema
The type of response format being defined: json_schema
Fields
§
json_schema: ResponseFormatJsonSchema
Trait Implementations§
source§impl Clone for ResponseFormat
impl Clone for ResponseFormat
source§fn clone(&self) -> ResponseFormat
fn clone(&self) -> ResponseFormat
Returns a copy of the value. Read more
1.6.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 ResponseFormat
impl Debug for ResponseFormat
source§impl<'de> Deserialize<'de> for ResponseFormat
impl<'de> Deserialize<'de> for ResponseFormat
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 ResponseFormat
impl PartialEq for ResponseFormat
source§impl Serialize for ResponseFormat
impl Serialize for ResponseFormat
impl StructuralPartialEq for ResponseFormat
Auto Trait Implementations§
impl Freeze for ResponseFormat
impl RefUnwindSafe for ResponseFormat
impl Send for ResponseFormat
impl Sync for ResponseFormat
impl Unpin for ResponseFormat
impl UnwindSafe for ResponseFormat
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)