pub struct UsageStats {
pub total_requests: u64,
pub total_tokens: u64,
pub total_cost: f64,
pub avg_duration_ms: f64,
}Expand description
Usage statistics for LLM requests
Fields§
§total_requests: u64§total_tokens: u64§total_cost: f64§avg_duration_ms: f64Trait Implementations§
Source§impl Clone for UsageStats
impl Clone for UsageStats
Source§fn clone(&self) -> UsageStats
fn clone(&self) -> UsageStats
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 UsageStats
impl Debug for UsageStats
Source§impl Default for UsageStats
impl Default for UsageStats
Source§fn default() -> UsageStats
fn default() -> UsageStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageStats
impl RefUnwindSafe for UsageStats
impl Send for UsageStats
impl Sync for UsageStats
impl Unpin for UsageStats
impl UnsafeUnpin for UsageStats
impl UnwindSafe for UsageStats
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