pub struct ResponseFormatConfiguration {
pub json_schema: Map<String, Value>,
pub type_: ResponseFormatConfigurationType,
}Expand description
Structured output configuration.
Fields§
§json_schema: Map<String, Value>A JSONSchemaFormat object (schema definition as documented by the API).
type_: ResponseFormatConfigurationTypeRequired if response_format is provided.
Implementations§
Trait Implementations§
Source§impl Clone for ResponseFormatConfiguration
impl Clone for ResponseFormatConfiguration
Source§impl Debug for ResponseFormatConfiguration
impl Debug for ResponseFormatConfiguration
Source§impl<'de> Deserialize<'de> for ResponseFormatConfiguration
impl<'de> Deserialize<'de> for ResponseFormatConfiguration
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<ResponseFormatConfiguration> for ResponseFormatConfiguration
impl From<ResponseFormatConfiguration> for ResponseFormatConfiguration
Source§fn from(value: ResponseFormatConfiguration) -> Self
fn from(value: ResponseFormatConfiguration) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ResponseFormatConfiguration> for ResponseFormatConfiguration
impl TryFrom<ResponseFormatConfiguration> for ResponseFormatConfiguration
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ResponseFormatConfiguration) -> Result<Self, ConversionError>
fn try_from(value: ResponseFormatConfiguration) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ResponseFormatConfiguration
impl Freeze for ResponseFormatConfiguration
impl Move for ResponseFormatConfiguration
impl RefUnwindSafe for ResponseFormatConfiguration
impl Send for ResponseFormatConfiguration
impl Sync for ResponseFormatConfiguration
impl Unpin for ResponseFormatConfiguration
impl UnsafeUnpin for ResponseFormatConfigurationwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ResponseFormatConfiguration
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