pub struct TextResponseFormatJsonSchema {
pub type: String,
pub description: Option<String>,
pub name: String,
pub schema: ResponseFormatJsonSchemaSchema,
pub strict: Option<bool>,
}
Expand description
JSON Schema response format.
Fields§
§type: String
The type of response format being defined.
description: Option<String>
A description of what the response format is for, used by the model to determine how to respond in the format.
name: String
The name of the response format.
schema: ResponseFormatJsonSchemaSchema
§strict: Option<bool>
Whether to enable strict schema adherence when generating the output.
Trait Implementations§
Source§impl Clone for TextResponseFormatJsonSchema
impl Clone for TextResponseFormatJsonSchema
Source§fn clone(&self) -> TextResponseFormatJsonSchema
fn clone(&self) -> TextResponseFormatJsonSchema
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 moreAuto Trait Implementations§
impl Freeze for TextResponseFormatJsonSchema
impl RefUnwindSafe for TextResponseFormatJsonSchema
impl Send for TextResponseFormatJsonSchema
impl Sync for TextResponseFormatJsonSchema
impl Unpin for TextResponseFormatJsonSchema
impl UnwindSafe for TextResponseFormatJsonSchema
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