Struct ModelStats
pub struct ModelStats {
pub model: String,
pub provider: String,
pub inference_count: usize,
pub input_tokens: i32,
pub output_tokens: i32,
pub total_tokens: i32,
pub cache_read_input_tokens: i32,
pub cache_creation_input_tokens: i32,
pub total_duration_ms: u64,
}Expand description
Per-model aggregated inference statistics.
Fields§
§model: String§provider: String§inference_count: usize§input_tokens: i32§output_tokens: i32§total_tokens: i32§cache_read_input_tokens: i32§cache_creation_input_tokens: i32§total_duration_ms: u64Trait Implementations§
§impl Clone for ModelStats
impl Clone for ModelStats
§fn clone(&self) -> ModelStats
fn clone(&self) -> ModelStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ModelStats
impl Debug for ModelStats
§impl Default for ModelStats
impl Default for ModelStats
§fn default() -> ModelStats
fn default() -> ModelStats
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ModelStats
impl<'de> Deserialize<'de> for ModelStats
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for ModelStats
impl Serialize for ModelStats
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ModelStats
impl RefUnwindSafe for ModelStats
impl Send for ModelStats
impl Sync for ModelStats
impl Unpin for ModelStats
impl UnwindSafe for ModelStats
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