pub struct ModelUsageRollup {
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 observations: Vec<Usage>,
pub cost_provenance: Vec<UsageCostProvenance>,
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>§observations: Vec<Usage>§cost_provenance: Vec<UsageCostProvenance>§arithmetic_overflow: boolTrait Implementations§
Source§impl Clone for ModelUsageRollup
impl Clone for ModelUsageRollup
Source§fn clone(&self) -> ModelUsageRollup
fn clone(&self) -> ModelUsageRollup
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 ModelUsageRollup
impl Debug for ModelUsageRollup
Source§impl Default for ModelUsageRollup
impl Default for ModelUsageRollup
Source§fn default() -> ModelUsageRollup
fn default() -> ModelUsageRollup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelUsageRollup
impl<'de> Deserialize<'de> for ModelUsageRollup
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 ModelUsageRollup
impl JsonSchema for ModelUsageRollup
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 ModelUsageRollup
impl PartialEq for ModelUsageRollup
Source§fn eq(&self, other: &ModelUsageRollup) -> bool
fn eq(&self, other: &ModelUsageRollup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelUsageRollup
impl Serialize for ModelUsageRollup
impl StructuralPartialEq for ModelUsageRollup
Auto Trait Implementations§
impl Freeze for ModelUsageRollup
impl RefUnwindSafe for ModelUsageRollup
impl Send for ModelUsageRollup
impl Sync for ModelUsageRollup
impl Unpin for ModelUsageRollup
impl UnsafeUnpin for ModelUsageRollup
impl UnwindSafe for ModelUsageRollup
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