pub struct CreateChatCompletionResponse {
pub id: String,
pub object: String,
pub created: i32,
pub model: String,
pub choices: Vec<CreateChatCompletionResponseChoicesInner>,
pub usage: Option<Box<CreateCompletionResponseUsage>>,
}
Fields§
§id: String
§object: String
§created: i32
§model: String
§choices: Vec<CreateChatCompletionResponseChoicesInner>
§usage: Option<Box<CreateCompletionResponseUsage>>
Implementations§
Source§impl CreateChatCompletionResponse
impl CreateChatCompletionResponse
pub fn new( id: String, object: String, created: i32, model: String, choices: Vec<CreateChatCompletionResponseChoicesInner>, ) -> CreateChatCompletionResponse
Trait Implementations§
Source§impl Clone for CreateChatCompletionResponse
impl Clone for CreateChatCompletionResponse
Source§fn clone(&self) -> CreateChatCompletionResponse
fn clone(&self) -> CreateChatCompletionResponse
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 CreateChatCompletionResponse
impl Debug for CreateChatCompletionResponse
Source§impl Default for CreateChatCompletionResponse
impl Default for CreateChatCompletionResponse
Source§fn default() -> CreateChatCompletionResponse
fn default() -> CreateChatCompletionResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChatCompletionResponse
impl<'de> Deserialize<'de> for CreateChatCompletionResponse
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 PartialEq for CreateChatCompletionResponse
impl PartialEq for CreateChatCompletionResponse
Source§fn eq(&self, other: &CreateChatCompletionResponse) -> bool
fn eq(&self, other: &CreateChatCompletionResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateChatCompletionResponse
Auto Trait Implementations§
impl Freeze for CreateChatCompletionResponse
impl RefUnwindSafe for CreateChatCompletionResponse
impl Send for CreateChatCompletionResponse
impl Sync for CreateChatCompletionResponse
impl Unpin for CreateChatCompletionResponse
impl UnwindSafe for CreateChatCompletionResponse
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