pub struct UsageBreakdownV1 {
pub input_tokens: u64,
pub output_tokens: u64,
pub cached_input_tokens: u64,
pub cache_write_tokens: u64,
pub reasoning_tokens: u64,
pub other_units: Vec<MeasuredUnitV1>,
}Expand description
Granular token usage breakdown.
Fields§
§input_tokens: u64§output_tokens: u64§cached_input_tokens: u64§cache_write_tokens: u64§reasoning_tokens: u64§other_units: Vec<MeasuredUnitV1>Trait Implementations§
Source§impl Clone for UsageBreakdownV1
impl Clone for UsageBreakdownV1
Source§fn clone(&self) -> UsageBreakdownV1
fn clone(&self) -> UsageBreakdownV1
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 UsageBreakdownV1
impl Debug for UsageBreakdownV1
Source§impl Default for UsageBreakdownV1
impl Default for UsageBreakdownV1
Source§fn default() -> UsageBreakdownV1
fn default() -> UsageBreakdownV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageBreakdownV1
impl<'de> Deserialize<'de> for UsageBreakdownV1
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
impl Eq for UsageBreakdownV1
Source§impl PartialEq for UsageBreakdownV1
impl PartialEq for UsageBreakdownV1
Source§impl Serialize for UsageBreakdownV1
impl Serialize for UsageBreakdownV1
impl StructuralPartialEq for UsageBreakdownV1
Auto Trait Implementations§
impl Freeze for UsageBreakdownV1
impl RefUnwindSafe for UsageBreakdownV1
impl Send for UsageBreakdownV1
impl Sync for UsageBreakdownV1
impl Unpin for UsageBreakdownV1
impl UnsafeUnpin for UsageBreakdownV1
impl UnwindSafe for UsageBreakdownV1
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