pub enum ResponseFormatTextConfig {
Text,
JsonObject,
JsonSchema {
name: String,
schema: Value,
description: Option<String>,
strict: Option<bool>,
},
}Expand description
The text.format structured-output configuration.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ResponseFormatTextConfig
impl Clone for ResponseFormatTextConfig
Source§fn clone(&self) -> ResponseFormatTextConfig
fn clone(&self) -> ResponseFormatTextConfig
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 ResponseFormatTextConfig
impl Debug for ResponseFormatTextConfig
Source§impl<'de> Deserialize<'de> for ResponseFormatTextConfig
impl<'de> Deserialize<'de> for ResponseFormatTextConfig
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
Auto Trait Implementations§
impl Freeze for ResponseFormatTextConfig
impl RefUnwindSafe for ResponseFormatTextConfig
impl Send for ResponseFormatTextConfig
impl Sync for ResponseFormatTextConfig
impl Unpin for ResponseFormatTextConfig
impl UnsafeUnpin for ResponseFormatTextConfig
impl UnwindSafe for ResponseFormatTextConfig
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