pub struct BatchUsage {
pub input_tokens: i64,
pub input_tokens_details: InputTokensDetails,
pub output_tokens: i64,
pub output_tokens_details: OutputTokensDetails,
pub total_tokens: i64,
}Expand description
Represents token usage details including input tokens, output tokens, a
Fields§
§input_tokens: i64The number of input tokens.
input_tokens_details: InputTokensDetailsA detailed breakdown of the input tokens.
output_tokens: i64The number of output tokens.
output_tokens_details: OutputTokensDetailsA detailed breakdown of the output tokens.
total_tokens: i64The total number of tokens used.
Trait Implementations§
Source§impl Clone for BatchUsage
impl Clone for BatchUsage
Source§fn clone(&self) -> BatchUsage
fn clone(&self) -> BatchUsage
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 Debug for BatchUsage
impl Debug for BatchUsage
Source§impl<'de> Deserialize<'de> for BatchUsage
impl<'de> Deserialize<'de> for BatchUsage
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 BatchUsage
impl RefUnwindSafe for BatchUsage
impl Send for BatchUsage
impl Sync for BatchUsage
impl Unpin for BatchUsage
impl UnsafeUnpin for BatchUsage
impl UnwindSafe for BatchUsage
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