pub struct UsageStats {
pub period_days: u32,
pub daily_usage: Vec<DailyUsage>,
pub recent_transactions: Vec<CreditTransaction>,
pub total_requests: u64,
pub total_tokens: u64,
}Expand description
Represents usage statistics over a period (legacy).
Fields§
§period_days: u32The number of days in the usage period.
daily_usage: Vec<DailyUsage>A list of daily usage data.
recent_transactions: Vec<CreditTransaction>A list of recent credit transactions.
total_requests: u64The total number of requests made in the period.
total_tokens: u64The total number of tokens used in the period.
Trait 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<'de> Deserialize<'de> for UsageStats
impl<'de> Deserialize<'de> for UsageStats
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 UsageStats
impl RefUnwindSafe for UsageStats
impl Send for UsageStats
impl Sync for UsageStats
impl Unpin 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