pub struct ChatGeneric<C> {
pub id: String,
pub choices: Vec<C>,
pub created: u64,
pub model: String,
pub system_fingerprint: String,
pub object: String,
pub usage: Option<Usage>,
}Expand description
Generic chat response container.
Fields§
§id: StringA unique identifier for the chat completion.
choices: Vec<C>§created: u64The Unix timestamp (in seconds) of when the chat completion was created.
model: StringThe model used for the chat completion.
system_fingerprint: StringThis fingerprint represents the backend configuration that the model runs with.
object: StringPossible values: [chat.completion]
The object type, which is always chat.completion.
usage: Option<Usage>Usage statistics for the completion request.
Trait Implementations§
Source§impl<C: Clone> Clone for ChatGeneric<C>
impl<C: Clone> Clone for ChatGeneric<C>
Source§fn clone(&self) -> ChatGeneric<C>
fn clone(&self) -> ChatGeneric<C>
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<C: Debug> Debug for ChatGeneric<C>
impl<C: Debug> Debug for ChatGeneric<C>
Source§impl<'de, C> Deserialize<'de> for ChatGeneric<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for ChatGeneric<C>where
C: Deserialize<'de>,
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<C: PartialEq> PartialEq for ChatGeneric<C>
impl<C: PartialEq> PartialEq for ChatGeneric<C>
Source§fn eq(&self, other: &ChatGeneric<C>) -> bool
fn eq(&self, other: &ChatGeneric<C>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<C> Serialize for ChatGeneric<C>where
C: Serialize,
impl<C> Serialize for ChatGeneric<C>where
C: Serialize,
impl<C> StructuralPartialEq for ChatGeneric<C>
Auto Trait Implementations§
impl<C> Freeze for ChatGeneric<C>
impl<C> RefUnwindSafe for ChatGeneric<C>where
C: RefUnwindSafe,
impl<C> Send for ChatGeneric<C>where
C: Send,
impl<C> Sync for ChatGeneric<C>where
C: Sync,
impl<C> Unpin for ChatGeneric<C>where
C: Unpin,
impl<C> UnsafeUnpin for ChatGeneric<C>
impl<C> UnwindSafe for ChatGeneric<C>where
C: UnwindSafe,
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