Struct async_openai::types::CreateChatCompletionResponse
source · pub struct CreateChatCompletionResponse {
pub id: String,
pub object: String,
pub created: u32,
pub model: String,
pub usage: Option<Usage>,
pub choices: Vec<ChatChoice>,
}
Fields§
§id: String
§object: String
§created: u32
§model: String
§usage: Option<Usage>
§choices: Vec<ChatChoice>
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<'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<CreateChatCompletionResponse> for CreateChatCompletionResponse
impl PartialEq<CreateChatCompletionResponse> for CreateChatCompletionResponse
source§fn eq(&self, other: &CreateChatCompletionResponse) -> bool
fn eq(&self, other: &CreateChatCompletionResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateChatCompletionResponse
Auto Trait Implementations§
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