pub struct ChatCompletionList {
pub data: Vec<CreateChatCompletionResponse>,
pub first_id: String,
pub last_id: String,
pub has_more: bool,
}
Expand description
An object representing a list of Chat Completions.
Fields§
§data: Vec<CreateChatCompletionResponse>
An array of chat completion objects.
first_id: String
The identifier of the first chat completion in the data array.
last_id: String
The identifier of the last chat completion in the data array.
has_more: bool
Indicates whether there are more Chat Completions available.
Implementations§
Trait Implementations§
Source§impl Clone for ChatCompletionList
impl Clone for ChatCompletionList
Source§fn clone(&self) -> ChatCompletionList
fn clone(&self) -> ChatCompletionList
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChatCompletionList
impl Debug for ChatCompletionList
Source§impl<'de> Deserialize<'de> for ChatCompletionList
impl<'de> Deserialize<'de> for ChatCompletionList
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 ChatCompletionList
impl PartialEq for ChatCompletionList
Source§impl Serialize for ChatCompletionList
impl Serialize for ChatCompletionList
impl StructuralPartialEq for ChatCompletionList
Auto Trait Implementations§
impl Freeze for ChatCompletionList
impl RefUnwindSafe for ChatCompletionList
impl Send for ChatCompletionList
impl Sync for ChatCompletionList
impl Unpin for ChatCompletionList
impl UnwindSafe for ChatCompletionList
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