pub struct ModelUsageStats {
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub total_tokens: u64,
pub prompt_cost: f64,
pub completion_cost: f64,
pub total_cost: f64,
pub calls: u64,
}Expand description
Per-model usage statistics
Fields§
§prompt_tokens: u64§completion_tokens: u64§total_tokens: u64§prompt_cost: f64§completion_cost: f64§total_cost: f64§calls: u64Trait Implementations§
Source§impl Clone for ModelUsageStats
impl Clone for ModelUsageStats
Source§fn clone(&self) -> ModelUsageStats
fn clone(&self) -> ModelUsageStats
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 moreSource§impl Debug for ModelUsageStats
impl Debug for ModelUsageStats
Source§impl Default for ModelUsageStats
impl Default for ModelUsageStats
Source§fn default() -> ModelUsageStats
fn default() -> ModelUsageStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelUsageStats
impl<'de> Deserialize<'de> for ModelUsageStats
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 ModelUsageStats
impl RefUnwindSafe for ModelUsageStats
impl Send for ModelUsageStats
impl Sync for ModelUsageStats
impl Unpin for ModelUsageStats
impl UnsafeUnpin for ModelUsageStats
impl UnwindSafe for ModelUsageStats
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