pub struct CostSummary {
pub confidence: CostSource,
pub estimated_runs: i32,
pub measured_share: f64,
pub runs: i32,
pub unreported_runs: i32,
pub usage: TokenUsage,
pub usd: f64,
}Expand description
Totals over some set of runs, carrying their own confidence.
Fields§
§confidence: CostSourceThe weakest source contributing to this total.
estimated_runs: i32Runs priced from a rate card rather than measured.
Fraction of runs whose cost the runner actually reported, 0.0 to 1.0.
runs: i32How many runs contributed.
unreported_runs: i32Runs whose runner reported no cost at all.
usage: TokenUsageTotal tokens.
usd: f64Total cost in US dollars.
Trait Implementations§
Source§impl Clone for CostSummary
impl Clone for CostSummary
Source§impl Debug for CostSummary
impl Debug for CostSummary
Source§impl<'de> Deserialize<'de> for CostSummary
impl<'de> Deserialize<'de> for CostSummary
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 CostSummary
impl PartialEq for CostSummary
Source§impl Serialize for CostSummary
impl Serialize for CostSummary
impl StructuralPartialEq for CostSummary
Auto Trait Implementations§
impl Freeze for CostSummary
impl RefUnwindSafe for CostSummary
impl Send for CostSummary
impl Sync for CostSummary
impl Unpin for CostSummary
impl UnsafeUnpin for CostSummary
impl UnwindSafe for CostSummary
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