pub struct ResponseFormatText {
pub type_: ResponseFormatTextType,
}Expand description
Default response format. Used to generate text responses.
JSON schema
{
"description": "Default response format. Used to generate text responses.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"description": "The type of response format being defined. Always `text`.",
"type": "string",
"enum": [
"text"
]
}
}
}Fields§
§type_: ResponseFormatTextTypeThe type of response format being defined. Always text.
Trait Implementations§
Source§impl Clone for ResponseFormatText
impl Clone for ResponseFormatText
Source§fn clone(&self) -> ResponseFormatText
fn clone(&self) -> ResponseFormatText
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 ResponseFormatText
impl Debug for ResponseFormatText
Source§impl<'de> Deserialize<'de> for ResponseFormatText
impl<'de> Deserialize<'de> for ResponseFormatText
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<ResponseFormatText> for CreateChatCompletionRequestResponseFormat
impl From<ResponseFormatText> for CreateChatCompletionRequestResponseFormat
Source§fn from(value: ResponseFormatText) -> Self
fn from(value: ResponseFormatText) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseFormatText
impl RefUnwindSafe for ResponseFormatText
impl Send for ResponseFormatText
impl Sync for ResponseFormatText
impl Unpin for ResponseFormatText
impl UnsafeUnpin for ResponseFormatText
impl UnwindSafe for ResponseFormatText
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