pub struct UsageStatsResponse {
pub period_days: u32,
pub total_requests: u64,
pub total_credits_deducted: f64,
pub stats_by_provider: Value,
pub logs: Vec<Value>,
pub data: Option<Value>,
}Expand description
Usage statistics response for GET /api/v1/usage/stats.
Fields§
§period_days: u32Number of days included in the aggregation window.
total_requests: u64Total requests in the selected period.
total_credits_deducted: f64Total credits deducted in the selected period.
stats_by_provider: ValueProvider-level summary alias payload.
logs: Vec<Value>Recent usage logs alias payload.
data: Option<Value>Canonical envelope data field when preserved by deserialization.
Trait Implementations§
Source§impl Clone for UsageStatsResponse
impl Clone for UsageStatsResponse
Source§fn clone(&self) -> UsageStatsResponse
fn clone(&self) -> UsageStatsResponse
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 UsageStatsResponse
impl Debug for UsageStatsResponse
Source§impl<'de> Deserialize<'de> for UsageStatsResponse
impl<'de> Deserialize<'de> for UsageStatsResponse
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 UsageStatsResponse
impl RefUnwindSafe for UsageStatsResponse
impl Send for UsageStatsResponse
impl Sync for UsageStatsResponse
impl Unpin for UsageStatsResponse
impl UnsafeUnpin for UsageStatsResponse
impl UnwindSafe for UsageStatsResponse
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