pub struct CompletionMeta {
pub id: CompactString,
pub object: CompactString,
pub created: u64,
pub model: CompactString,
pub system_fingerprint: Option<CompactString>,
}Expand description
Common metadata shared between streaming and non-streaming completions
Fields§
§id: CompactStringA unique identifier for the chat completion
object: CompactStringThe object type
created: u64Unix timestamp (in seconds) of when the response was created
model: CompactStringThe model used for the completion
system_fingerprint: Option<CompactString>Backend configuration identifier
Trait Implementations§
Source§impl Clone for CompletionMeta
impl Clone for CompletionMeta
Source§fn clone(&self) -> CompletionMeta
fn clone(&self) -> CompletionMeta
Returns a duplicate 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 CompletionMeta
impl Debug for CompletionMeta
Source§impl Default for CompletionMeta
impl Default for CompletionMeta
Source§fn default() -> CompletionMeta
fn default() -> CompletionMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompletionMeta
impl<'de> Deserialize<'de> for CompletionMeta
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
Auto Trait Implementations§
impl Freeze for CompletionMeta
impl RefUnwindSafe for CompletionMeta
impl Send for CompletionMeta
impl Sync for CompletionMeta
impl Unpin for CompletionMeta
impl UnsafeUnpin for CompletionMeta
impl UnwindSafe for CompletionMeta
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