pub struct UsageStats {
pub year: i32,
pub month: u32,
pub total_calls: u64,
pub total_tokens: u64,
pub total_cost_cents: u64,
pub by_action_type: Vec<ActionTypeUsage>,
pub by_model: Vec<ModelUsage>,
}Expand description
Flat summary returned by GET /projects/:id/usage (no JSON:API wrapper).
Fields§
§year: i32§month: u32§total_calls: u64§total_tokens: u64§total_cost_cents: u64§by_action_type: Vec<ActionTypeUsage>§by_model: Vec<ModelUsage>Trait Implementations§
Source§impl Clone for UsageStats
impl Clone for UsageStats
Source§impl Debug for UsageStats
impl Debug for UsageStats
Source§impl Default for UsageStats
impl Default 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 Forget for UsageStats
impl Freeze for UsageStatswhere
*const u8 is !null: Freeze,
PhantomData<ActionTypeUsage>: Freeze,
PhantomData<ModelUsage>: Freeze,
impl Move for UsageStats
impl RefUnwindSafe for UsageStats
impl Send for UsageStatswhere
RawVecInner: Send,
impl Sync for UsageStatswhere
RawVecInner: Sync,
impl Unpin for UsageStats
impl UnsafeUnpin for UsageStatswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ActionTypeUsage>: UnsafeUnpin,
PhantomData<ModelUsage>: UnsafeUnpin,
impl UnwindSafe for UsageStatswhere
RawVecInner: UnwindSafe,
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