pub struct RunCompletionUsage {
pub completion_tokens: i64,
pub prompt_tokens: i64,
pub total_tokens: i64,
}
Expand description
Usage statistics related to the run.
Fields§
§completion_tokens: i64
Number of completion tokens used over the course of the run.
prompt_tokens: i64
Number of prompt tokens used over the course of the run.
total_tokens: i64
Total 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 Default for RunCompletionUsage
impl Default for RunCompletionUsage
Source§fn default() -> RunCompletionUsage
fn default() -> RunCompletionUsage
Returns the “default value” for a type. Read more
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