pub struct UsageSummary {Show 15 fields
pub plan: String,
pub period: String,
pub period_days: i64,
pub input_tokens: i64,
pub output_tokens: i64,
pub thinking_tokens: i64,
pub total_tokens: i64,
pub runs_count: i64,
pub tool_calls_count: i64,
pub bridge_tasks: Option<i64>,
pub storage_bytes: i64,
pub total_cost: f64,
pub provider_cost: f64,
pub non_run_cost: f64,
pub margin_summary: Option<UsageMarginSummary>,
}Expand description
Tenant usage for one billing period. Flat — the counters are top-level, not nested under a
usage object.
Fields§
§plan: String§period: StringYYYY-MM.
period_days: i64§input_tokens: i64§output_tokens: i64§thinking_tokens: i64§total_tokens: i64§runs_count: i64§tool_calls_count: i64§bridge_tasks: Option<i64>§storage_bytes: i64§total_cost: f64What the tenant is billed, in USD.
provider_cost: f64What the upstream providers charged, in USD.
non_run_cost: f64§margin_summary: Option<UsageMarginSummary>Trait Implementations§
Source§impl Clone for UsageSummary
impl Clone for UsageSummary
Source§fn clone(&self) -> UsageSummary
fn clone(&self) -> UsageSummary
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 UsageSummary
impl Debug for UsageSummary
Source§impl Default for UsageSummary
impl Default for UsageSummary
Source§fn default() -> UsageSummary
fn default() -> UsageSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageSummary
impl<'de> Deserialize<'de> for UsageSummary
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
Source§impl PartialEq for UsageSummary
impl PartialEq for UsageSummary
Source§impl Serialize for UsageSummary
impl Serialize for UsageSummary
impl StructuralPartialEq for UsageSummary
Auto Trait Implementations§
impl Freeze for UsageSummary
impl RefUnwindSafe for UsageSummary
impl Send for UsageSummary
impl Sync for UsageSummary
impl Unpin for UsageSummary
impl UnsafeUnpin for UsageSummary
impl UnwindSafe for UsageSummary
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