pub struct StatsSummary {
pub total_requests: u64,
pub success_count: u64,
pub client_error_count: u64,
pub server_error_count: u64,
pub success_rate: f64,
pub avg_duration_ms: f64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_cache_read_tokens: u64,
pub total_cache_creation_tokens: u64,
}Expand description
Statistics summary.
Fields§
§total_requests: u64§success_count: u64§client_error_count: u64§server_error_count: u64§success_rate: f64§avg_duration_ms: f64§total_input_tokens: u64§total_output_tokens: u64§total_cache_read_tokens: u64§total_cache_creation_tokens: u64Trait Implementations§
Source§impl Clone for StatsSummary
impl Clone for StatsSummary
Source§fn clone(&self) -> StatsSummary
fn clone(&self) -> StatsSummary
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 StatsSummary
impl Debug for StatsSummary
Source§impl<'de> Deserialize<'de> for StatsSummary
impl<'de> Deserialize<'de> for StatsSummary
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 StatsSummary
impl RefUnwindSafe for StatsSummary
impl Send for StatsSummary
impl Sync for StatsSummary
impl Unpin for StatsSummary
impl UnsafeUnpin for StatsSummary
impl UnwindSafe for StatsSummary
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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