pub enum Budget {
Unlimited,
Tokens(u64),
Cost(f64),
}Expand description
Budget limit for a model.
Variants§
Unlimited
Unlimited usage (no budget tracking).
Tokens(u64)
Limit by total tokens.
Cost(f64)
Limit by estimated cost in USD (stored as microdollars for precision).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Budget
impl Freeze for Budget
impl Move for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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