pub struct BudgetUsage {
pub tokens_used: u64,
pub cost_usd: f64,
pub duration: Duration,
pub steps_completed: usize,
}Expand description
Current budget usage statistics
Fields§
§tokens_used: u64Tokens consumed
cost_usd: f64Cost in USD
duration: DurationTime elapsed since start
steps_completed: usizeNumber of steps completed
Trait Implementations§
Source§impl Clone for BudgetUsage
impl Clone for BudgetUsage
Source§fn clone(&self) -> BudgetUsage
fn clone(&self) -> BudgetUsage
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 moreAuto Trait Implementations§
impl Freeze for BudgetUsage
impl RefUnwindSafe for BudgetUsage
impl Send for BudgetUsage
impl Sync for BudgetUsage
impl Unpin for BudgetUsage
impl UnsafeUnpin for BudgetUsage
impl UnwindSafe for BudgetUsage
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