pub struct ResponseFormat {
pub name: String,
pub schema: Value,
}Expand description
Asks the model to answer with JSON matching schema.
Fields§
§name: StringSchema name (required by OpenAI; letters, digits, _ and -).
schema: ValueJSON Schema of the answer.
Trait Implementations§
Source§impl Clone for ResponseFormat
impl Clone for ResponseFormat
Source§impl Debug for ResponseFormat
impl Debug for ResponseFormat
Source§impl PartialEq for ResponseFormat
impl PartialEq for ResponseFormat
impl StructuralPartialEq for ResponseFormat
Auto Trait Implementations§
impl Freeze for ResponseFormat
impl RefUnwindSafe for ResponseFormat
impl Send for ResponseFormat
impl Sync for ResponseFormat
impl Unpin for ResponseFormat
impl UnsafeUnpin for ResponseFormat
impl UnwindSafe for ResponseFormat
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