pub struct ResponseTextParam {
pub format: Option<TextResponseFormatConfiguration>,
pub verbosity: Option<Verbosity>,
}Expand description
Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more:
JSON schema
{
"description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
"type": "object",
"properties": {
"format": {
"$ref": "#/components/schemas/TextResponseFormatConfiguration"
},
"verbosity": {
"$ref": "#/components/schemas/Verbosity"
}
}
}Fields§
§format: Option<TextResponseFormatConfiguration>§verbosity: Option<Verbosity>Trait Implementations§
Source§impl Clone for ResponseTextParam
impl Clone for ResponseTextParam
Source§fn clone(&self) -> ResponseTextParam
fn clone(&self) -> ResponseTextParam
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 ResponseTextParam
impl Debug for ResponseTextParam
Source§impl Default for ResponseTextParam
impl Default for ResponseTextParam
Source§impl<'de> Deserialize<'de> for ResponseTextParam
impl<'de> Deserialize<'de> for ResponseTextParam
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
Auto Trait Implementations§
impl Freeze for ResponseTextParam
impl RefUnwindSafe for ResponseTextParam
impl Send for ResponseTextParam
impl Sync for ResponseTextParam
impl Unpin for ResponseTextParam
impl UnsafeUnpin for ResponseTextParam
impl UnwindSafe for ResponseTextParam
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