pub enum BudgetDimension {
Token,
CostCents,
TimeSecs,
}Expand description
The dimension along which a budget is measured.
Variants§
Token
Token-count budget (e.g. LLM tokens).
CostCents
Cost budget measured in hundredths of a cent (cost-cents).
TimeSecs
Wall-clock time budget in seconds.
Trait Implementations§
Source§impl Clone for BudgetDimension
impl Clone for BudgetDimension
Source§fn clone(&self) -> BudgetDimension
fn clone(&self) -> BudgetDimension
Returns a duplicate of the value. Read more
1.0.0 · 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 BudgetDimension
impl Debug for BudgetDimension
Source§impl Display for BudgetDimension
impl Display for BudgetDimension
Source§impl Hash for BudgetDimension
impl Hash for BudgetDimension
Source§impl PartialEq for BudgetDimension
impl PartialEq for BudgetDimension
impl Copy for BudgetDimension
impl Eq for BudgetDimension
impl StructuralPartialEq for BudgetDimension
Auto Trait Implementations§
impl Freeze for BudgetDimension
impl RefUnwindSafe for BudgetDimension
impl Send for BudgetDimension
impl Sync for BudgetDimension
impl Unpin for BudgetDimension
impl UnsafeUnpin for BudgetDimension
impl UnwindSafe for BudgetDimension
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