pub struct UsageAgentTotal {
pub agent_name: String,
pub model_id: String,
pub usage: Usage,
pub estimate_pricing: Option<PricingEstimate>,
pub usage_id: Option<String>,
pub source: String,
}Expand description
Cumulative usage grouped by agent/source.
Fields§
§agent_name: StringHuman-readable agent or source name.
model_id: StringModel identifier, or multiple when a source used more than one model.
usage: UsageCumulative token usage for this agent/source.
estimate_pricing: Option<PricingEstimate>Estimated cumulative pricing for this agent/source, in USD.
usage_id: Option<String>Stable usage record id when all grouped entries share one id.
source: StringComponent that reported this usage.
Trait Implementations§
Source§impl Clone for UsageAgentTotal
impl Clone for UsageAgentTotal
Source§fn clone(&self) -> UsageAgentTotal
fn clone(&self) -> UsageAgentTotal
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 UsageAgentTotal
impl Debug for UsageAgentTotal
Source§impl<'de> Deserialize<'de> for UsageAgentTotal
impl<'de> Deserialize<'de> for UsageAgentTotal
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
impl Eq for UsageAgentTotal
Source§impl PartialEq for UsageAgentTotal
impl PartialEq for UsageAgentTotal
Source§fn eq(&self, other: &UsageAgentTotal) -> bool
fn eq(&self, other: &UsageAgentTotal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsageAgentTotal
impl Serialize for UsageAgentTotal
impl StructuralPartialEq for UsageAgentTotal
Auto Trait Implementations§
impl Freeze for UsageAgentTotal
impl RefUnwindSafe for UsageAgentTotal
impl Send for UsageAgentTotal
impl Sync for UsageAgentTotal
impl Unpin for UsageAgentTotal
impl UnsafeUnpin for UsageAgentTotal
impl UnwindSafe for UsageAgentTotal
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