pub struct ResponseFormatJson {
    pub name: String,
    pub description: Option<String>,
    pub schema: Option<JSONSchema>,
}Expand description
Specifies that the model response should be in JSON format adhering to a specified schema.
Fields§
§name: StringThe name of the schema.
description: Option<String>The description of the schema.
schema: Option<JSONSchema>Trait Implementations§
Source§impl Clone for ResponseFormatJson
 
impl Clone for ResponseFormatJson
Source§fn clone(&self) -> ResponseFormatJson
 
fn clone(&self) -> ResponseFormatJson
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 ResponseFormatJson
 
impl Debug for ResponseFormatJson
Source§impl<'de> Deserialize<'de> for ResponseFormatJson
 
impl<'de> Deserialize<'de> for ResponseFormatJson
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 ResponseFormatJson
 
impl PartialEq for ResponseFormatJson
Source§impl Serialize for ResponseFormatJson
 
impl Serialize for ResponseFormatJson
impl StructuralPartialEq for ResponseFormatJson
Auto Trait Implementations§
impl Freeze for ResponseFormatJson
impl RefUnwindSafe for ResponseFormatJson
impl Send for ResponseFormatJson
impl Sync for ResponseFormatJson
impl Unpin for ResponseFormatJson
impl UnwindSafe for ResponseFormatJson
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