pub struct UsageRollup {
pub input_tokens: u64,
pub output_tokens: u64,
pub reasoning_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub request_count: u64,
pub cache_hit_rate: Option<f64>,
pub estimated_cost_usd: Option<f64>,
pub by_model: BTreeMap<ModelKey, ModelUsageRollup>,
pub arithmetic_overflow: bool,
}Fields§
§input_tokens: u64§output_tokens: u64§reasoning_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§request_count: u64§cache_hit_rate: Option<f64>§estimated_cost_usd: Option<f64>§by_model: BTreeMap<ModelKey, ModelUsageRollup>§arithmetic_overflow: boolTrait Implementations§
Source§impl Clone for UsageRollup
impl Clone for UsageRollup
Source§fn clone(&self) -> UsageRollup
fn clone(&self) -> UsageRollup
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 UsageRollup
impl Debug for UsageRollup
Source§impl Default for UsageRollup
impl Default for UsageRollup
Source§fn default() -> UsageRollup
fn default() -> UsageRollup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageRollup
impl<'de> Deserialize<'de> for UsageRollup
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
Source§impl JsonSchema for UsageRollup
impl JsonSchema for UsageRollup
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for UsageRollup
impl PartialEq for UsageRollup
Source§fn eq(&self, other: &UsageRollup) -> bool
fn eq(&self, other: &UsageRollup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsageRollup
impl Serialize for UsageRollup
impl StructuralPartialEq for UsageRollup
Auto Trait Implementations§
impl Freeze for UsageRollup
impl RefUnwindSafe for UsageRollup
impl Send for UsageRollup
impl Sync for UsageRollup
impl Unpin for UsageRollup
impl UnsafeUnpin for UsageRollup
impl UnwindSafe for UsageRollup
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