pub struct RunCompletionUsage {
    pub completion_tokens: u32,
    pub prompt_tokens: u32,
    pub total_tokens: u32,
}Fields§
§completion_tokens: u32Number of completion tokens used over the course of the run.
prompt_tokens: u32Number of prompt tokens used over the course of the run.
total_tokens: u32Total number of tokens used (prompt + completion).
Trait Implementations§
Source§impl Clone for RunCompletionUsage
 
impl Clone for RunCompletionUsage
Source§fn clone(&self) -> RunCompletionUsage
 
fn clone(&self) -> RunCompletionUsage
Returns a copy 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 RunCompletionUsage
 
impl Debug for RunCompletionUsage
Source§impl<'de> Deserialize<'de> for RunCompletionUsage
 
impl<'de> Deserialize<'de> for RunCompletionUsage
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 RunCompletionUsage
 
impl PartialEq for RunCompletionUsage
Source§impl Serialize for RunCompletionUsage
 
impl Serialize for RunCompletionUsage
impl StructuralPartialEq for RunCompletionUsage
Auto Trait Implementations§
impl Freeze for RunCompletionUsage
impl RefUnwindSafe for RunCompletionUsage
impl Send for RunCompletionUsage
impl Sync for RunCompletionUsage
impl Unpin for RunCompletionUsage
impl UnwindSafe for RunCompletionUsage
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