pub struct ChatCompletionMessageList {
pub data: Vec<ChatCompletionMessageListDatum>,
pub first_id: String,
pub last_id: String,
pub has_more: bool,
}
Expand description
An object representing a list of chat completion messages.
Fields§
§data: Vec<ChatCompletionMessageListDatum>
An array of chat completion message objects.
first_id: String
The identifier of the first chat message in the data array.
last_id: String
The identifier of the last chat message in the data array.
has_more: bool
Indicates whether there are more chat messages available.
Implementations§
Source§impl ChatCompletionMessageList
impl ChatCompletionMessageList
Sourcepub fn builder() -> ChatCompletionMessageListBuilder<((), (), (), ())>
pub fn builder() -> ChatCompletionMessageListBuilder<((), (), (), ())>
Create a builder for building ChatCompletionMessageList
.
On the builder, call .data(...)
, .first_id(...)
, .last_id(...)
, .has_more(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatCompletionMessageList
.
Trait Implementations§
Source§impl Clone for ChatCompletionMessageList
impl Clone for ChatCompletionMessageList
Source§fn clone(&self) -> ChatCompletionMessageList
fn clone(&self) -> ChatCompletionMessageList
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 ChatCompletionMessageList
impl Debug for ChatCompletionMessageList
Source§impl<'de> Deserialize<'de> for ChatCompletionMessageList
impl<'de> Deserialize<'de> for ChatCompletionMessageList
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 ChatCompletionMessageList
impl PartialEq for ChatCompletionMessageList
Source§fn eq(&self, other: &ChatCompletionMessageList) -> bool
fn eq(&self, other: &ChatCompletionMessageList) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionMessageList
Auto Trait Implementations§
impl Freeze for ChatCompletionMessageList
impl RefUnwindSafe for ChatCompletionMessageList
impl Send for ChatCompletionMessageList
impl Sync for ChatCompletionMessageList
impl Unpin for ChatCompletionMessageList
impl UnwindSafe for ChatCompletionMessageList
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