pub struct UsageMetricsModelMetricUsage {
pub cache_read_tokens: i64,
pub cache_write_tokens: i64,
pub input_tokens: i64,
pub output_tokens: i64,
pub reasoning_tokens: Option<i64>,
}Expand description
Token usage metrics for this model
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§cache_read_tokens: i64Total tokens read from prompt cache
cache_write_tokens: i64Total tokens written to prompt cache
input_tokens: i64Total input tokens consumed
output_tokens: i64Total output tokens produced
reasoning_tokens: Option<i64>Total output tokens used for reasoning
Trait Implementations§
Source§impl Clone for UsageMetricsModelMetricUsage
impl Clone for UsageMetricsModelMetricUsage
Source§fn clone(&self) -> UsageMetricsModelMetricUsage
fn clone(&self) -> UsageMetricsModelMetricUsage
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 UsageMetricsModelMetricUsage
impl Debug for UsageMetricsModelMetricUsage
Source§impl Default for UsageMetricsModelMetricUsage
impl Default for UsageMetricsModelMetricUsage
Source§fn default() -> UsageMetricsModelMetricUsage
fn default() -> UsageMetricsModelMetricUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageMetricsModelMetricUsage
impl<'de> Deserialize<'de> for UsageMetricsModelMetricUsage
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 UsageMetricsModelMetricUsage
impl RefUnwindSafe for UsageMetricsModelMetricUsage
impl Send for UsageMetricsModelMetricUsage
impl Sync for UsageMetricsModelMetricUsage
impl Unpin for UsageMetricsModelMetricUsage
impl UnsafeUnpin for UsageMetricsModelMetricUsage
impl UnwindSafe for UsageMetricsModelMetricUsage
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