Struct endpoints::chat::ChatResponseFormat
source · pub struct ChatResponseFormat {
pub ty: String,
}
Expand description
An object specifying the format that the model must output.
Fields§
§ty: String
Must be one of text`` or
json_object. Defaults to
text`.
Trait Implementations§
source§impl Clone for ChatResponseFormat
impl Clone for ChatResponseFormat
source§fn clone(&self) -> ChatResponseFormat
fn clone(&self) -> ChatResponseFormat
Returns a copy 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 ChatResponseFormat
impl Debug for ChatResponseFormat
source§impl Default for ChatResponseFormat
impl Default for ChatResponseFormat
source§impl<'de> Deserialize<'de> for ChatResponseFormat
impl<'de> Deserialize<'de> for ChatResponseFormat
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 ChatResponseFormat
impl RefUnwindSafe for ChatResponseFormat
impl Send for ChatResponseFormat
impl Sync for ChatResponseFormat
impl Unpin for ChatResponseFormat
impl UnwindSafe for ChatResponseFormat
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)