pub struct JsonSchemaConfig {
pub name: String,
pub strict: bool,
pub schema: JsonSchemaDefinition,
}Expand description
JSON Schema configuration for requesting structured outputs.
Fields§
§name: StringName for schema, used to identify output type.
strict: boolIf true, model response must strictly adhere to schema.
schema: JsonSchemaDefinitionThe JSON Schema definition.
Trait Implementations§
Source§impl Clone for JsonSchemaConfig
impl Clone for JsonSchemaConfig
Source§fn clone(&self) -> JsonSchemaConfig
fn clone(&self) -> JsonSchemaConfig
Returns a duplicate of the value. Read more
1.0.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 JsonSchemaConfig
impl Debug for JsonSchemaConfig
Source§impl<'de> Deserialize<'de> for JsonSchemaConfig
impl<'de> Deserialize<'de> for JsonSchemaConfig
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 JsonSchemaConfig
impl PartialEq for JsonSchemaConfig
Source§impl Serialize for JsonSchemaConfig
impl Serialize for JsonSchemaConfig
impl Eq for JsonSchemaConfig
impl StructuralPartialEq for JsonSchemaConfig
Auto Trait Implementations§
impl Freeze for JsonSchemaConfig
impl RefUnwindSafe for JsonSchemaConfig
impl Send for JsonSchemaConfig
impl Sync for JsonSchemaConfig
impl Unpin for JsonSchemaConfig
impl UnsafeUnpin for JsonSchemaConfig
impl UnwindSafe for JsonSchemaConfig
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