pub struct GlobalCostSnapshot {
pub total_agents: usize,
pub total_usage: TokenUsage,
pub total_cost: CostBreakdown,
pub global_budget_remaining: Option<f64>,
pub per_agent: Vec<CostSnapshot>,
}Expand description
Global cost snapshot across all agents.
Fields§
§total_agents: usize§total_usage: TokenUsage§total_cost: CostBreakdown§global_budget_remaining: Option<f64>§per_agent: Vec<CostSnapshot>Trait Implementations§
Source§impl Clone for GlobalCostSnapshot
impl Clone for GlobalCostSnapshot
Source§fn clone(&self) -> GlobalCostSnapshot
fn clone(&self) -> GlobalCostSnapshot
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 GlobalCostSnapshot
impl Debug for GlobalCostSnapshot
Source§impl<'de> Deserialize<'de> for GlobalCostSnapshot
impl<'de> Deserialize<'de> for GlobalCostSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalCostSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalCostSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GlobalCostSnapshot
impl Serialize for GlobalCostSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalCostSnapshot
impl RefUnwindSafe for GlobalCostSnapshot
impl Send for GlobalCostSnapshot
impl Sync for GlobalCostSnapshot
impl Unpin for GlobalCostSnapshot
impl UnsafeUnpin for GlobalCostSnapshot
impl UnwindSafe for GlobalCostSnapshot
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