pub enum BudgetExceededReason {
Tokens {
used: u64,
limit: u64,
},
Cost {
used: f64,
limit: f64,
},
Duration {
used: Duration,
limit: Duration,
},
Steps {
used: usize,
limit: usize,
},
}Expand description
Reason why budget was exceeded
Variants§
Tokens
Token limit exceeded
Cost
Cost limit exceeded
Duration
Duration limit exceeded
Steps
Step limit exceeded
Trait Implementations§
Source§impl Clone for BudgetExceededReason
impl Clone for BudgetExceededReason
Source§fn clone(&self) -> BudgetExceededReason
fn clone(&self) -> BudgetExceededReason
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 moreSource§impl Debug for BudgetExceededReason
impl Debug for BudgetExceededReason
Auto Trait Implementations§
impl Freeze for BudgetExceededReason
impl RefUnwindSafe for BudgetExceededReason
impl Send for BudgetExceededReason
impl Sync for BudgetExceededReason
impl Unpin for BudgetExceededReason
impl UnsafeUnpin for BudgetExceededReason
impl UnwindSafe for BudgetExceededReason
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