pub struct ChatCompletionMessageList {
pub object: String,
pub data: Vec<ChatCompletionResponseMessage>,
pub first_id: Option<String>,
pub last_id: Option<String>,
pub has_more: bool,
}Available on crate feature
chat-completion-types only.Expand description
List of messages for a chat completion.
Fields§
§object: String§data: Vec<ChatCompletionResponseMessage>§first_id: Option<String>§last_id: Option<String>§has_more: boolTrait 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 (const: unstable) · 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 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
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 UnsafeUnpin 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