pub struct ResponseFormatJsonObject {
pub type_: ResponseFormatJsonObjectType,
}Expand description
JSON object response format. An older method of generating JSON responses. Using json_schema is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
JSON schema
{
"description": "JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.\n",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"description": "The type of response format being defined. Always `json_object`.",
"type": "string",
"enum": [
"json_object"
]
}
}
}Fields§
§type_: ResponseFormatJsonObjectTypeThe type of response format being defined. Always json_object.
Trait Implementations§
Source§impl Clone for ResponseFormatJsonObject
impl Clone for ResponseFormatJsonObject
Source§fn clone(&self) -> ResponseFormatJsonObject
fn clone(&self) -> ResponseFormatJsonObject
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 Debug for ResponseFormatJsonObject
impl Debug for ResponseFormatJsonObject
Source§impl<'de> Deserialize<'de> for ResponseFormatJsonObject
impl<'de> Deserialize<'de> for ResponseFormatJsonObject
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 From<ResponseFormatJsonObject> for CreateChatCompletionRequestResponseFormat
impl From<ResponseFormatJsonObject> for CreateChatCompletionRequestResponseFormat
Source§fn from(value: ResponseFormatJsonObject) -> Self
fn from(value: ResponseFormatJsonObject) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseFormatJsonObject
impl RefUnwindSafe for ResponseFormatJsonObject
impl Send for ResponseFormatJsonObject
impl Sync for ResponseFormatJsonObject
impl Unpin for ResponseFormatJsonObject
impl UnsafeUnpin for ResponseFormatJsonObject
impl UnwindSafe for ResponseFormatJsonObject
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