pub struct ResponseUsage {
pub input_tokens: i64,
pub input_tokens_details: ResponseUsage_InputTokensDetails,
pub output_tokens: i64,
pub output_tokens_details: ResponseUsage_OutputTokensDetails,
pub total_tokens: i64,
}
Expand description
Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
Fields§
§input_tokens: i64
The number of input tokens.
input_tokens_details: ResponseUsage_InputTokensDetails
§output_tokens: i64
The number of output tokens.
output_tokens_details: ResponseUsage_OutputTokensDetails
§total_tokens: i64
The total number of tokens used.
Trait Implementations§
Source§impl Clone for ResponseUsage
impl Clone for ResponseUsage
Source§fn clone(&self) -> ResponseUsage
fn clone(&self) -> ResponseUsage
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 moreAuto Trait Implementations§
impl Freeze for ResponseUsage
impl RefUnwindSafe for ResponseUsage
impl Send for ResponseUsage
impl Sync for ResponseUsage
impl Unpin for ResponseUsage
impl UnwindSafe for ResponseUsage
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