pub struct ResponseFormatTextJSONSchemaConfig {
pub name: String,
pub schema_: HashMap<String, Value>,
pub type_: String,
pub description: Option<String>,
pub strict: Option<bool>,
}Expand description
JSON Schema response format.
Fields§
§name: StringThe name of the response format.
schema_: HashMap<String, Value>The schema for the response format, described as a JSON Schema object. Learn how
type_: StringThe type of response format being defined. Always json_schema.
description: Option<String>A description of what the response format is for, used by the model to determine
strict: Option<bool>Whether to enable strict schema adherence when generating the output. If set to
Trait Implementations§
Source§impl Clone for ResponseFormatTextJSONSchemaConfig
impl Clone for ResponseFormatTextJSONSchemaConfig
Source§fn clone(&self) -> ResponseFormatTextJSONSchemaConfig
fn clone(&self) -> ResponseFormatTextJSONSchemaConfig
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<'de> Deserialize<'de> for ResponseFormatTextJSONSchemaConfig
impl<'de> Deserialize<'de> for ResponseFormatTextJSONSchemaConfig
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 ResponseFormatTextJSONSchemaConfig
impl RefUnwindSafe for ResponseFormatTextJSONSchemaConfig
impl Send for ResponseFormatTextJSONSchemaConfig
impl Sync for ResponseFormatTextJSONSchemaConfig
impl Unpin for ResponseFormatTextJSONSchemaConfig
impl UnsafeUnpin for ResponseFormatTextJSONSchemaConfig
impl UnwindSafe for ResponseFormatTextJSONSchemaConfig
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