pub struct TenantStats {
pub requests: u64,
pub total_tokens: u64,
pub cost_usd: f64,
}Expand description
Statistics for a specific tenant.
Fields§
§requests: u64Number of requests
total_tokens: u64Total tokens
cost_usd: f64Total cost
Trait Implementations§
Source§impl Clone for TenantStats
impl Clone for TenantStats
Source§fn clone(&self) -> TenantStats
fn clone(&self) -> TenantStats
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 TenantStats
impl Debug for TenantStats
Source§impl Default for TenantStats
impl Default for TenantStats
Source§fn default() -> TenantStats
fn default() -> TenantStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenantStats
impl<'de> Deserialize<'de> for TenantStats
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 TenantStats
impl RefUnwindSafe for TenantStats
impl Send for TenantStats
impl Sync for TenantStats
impl Unpin for TenantStats
impl UnwindSafe for TenantStats
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