pub struct UsageSnapshotEntry {
pub agent_id: String,
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 for one agent or usage source in the current run.
Fields§
§agent_id: StringAgent or source instance that generated this usage.
agent_name: StringHuman-readable agent or source name.
model_id: StringModel identifier that generated this usage.
usage: UsageCumulative token usage for this agent/source in the run.
estimate_pricing: Option<PricingEstimate>Estimated cumulative pricing for this entry, in USD.
usage_id: Option<String>Stable usage record id for idempotent updates.
source: StringComponent that reported this usage.
Trait Implementations§
Source§impl Clone for UsageSnapshotEntry
impl Clone for UsageSnapshotEntry
Source§fn clone(&self) -> UsageSnapshotEntry
fn clone(&self) -> UsageSnapshotEntry
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 UsageSnapshotEntry
impl Debug for UsageSnapshotEntry
Source§impl<'de> Deserialize<'de> for UsageSnapshotEntry
impl<'de> Deserialize<'de> for UsageSnapshotEntry
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 UsageSnapshotEntry
Source§impl PartialEq for UsageSnapshotEntry
impl PartialEq for UsageSnapshotEntry
Source§fn eq(&self, other: &UsageSnapshotEntry) -> bool
fn eq(&self, other: &UsageSnapshotEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsageSnapshotEntry
impl Serialize for UsageSnapshotEntry
impl StructuralPartialEq for UsageSnapshotEntry
Auto Trait Implementations§
impl Freeze for UsageSnapshotEntry
impl RefUnwindSafe for UsageSnapshotEntry
impl Send for UsageSnapshotEntry
impl Sync for UsageSnapshotEntry
impl Unpin for UsageSnapshotEntry
impl UnsafeUnpin for UsageSnapshotEntry
impl UnwindSafe for UsageSnapshotEntry
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