pub struct Reported {
pub usd: f64,
pub source: CostSource,
pub input_tokens: u64,
pub output_tokens: u64,
}Expand description
What a run reported about its own cost.
Fields§
§usd: f64The figure, in dollars.
source: CostSourceWhere it came from, and therefore how much it can be trusted.
input_tokens: u64Tokens in, when the runner said.
output_tokens: u64Tokens out, when the runner said.
Implementations§
Source§impl Reported
impl Reported
Sourcepub const fn unreported() -> Self
pub const fn unreported() -> Self
A run whose cost could not be read.
Zero dollars, because nothing may be debited — but explicitly unreported, so no total built from it ever claims to be measured.
Trait Implementations§
impl StructuralPartialEq for Reported
Auto Trait Implementations§
impl Freeze for Reported
impl RefUnwindSafe for Reported
impl Send for Reported
impl Sync for Reported
impl Unpin for Reported
impl UnsafeUnpin for Reported
impl UnwindSafe for Reported
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