pub struct BudgetInfo {
pub tokens_remaining: u64,
pub calls_remaining: u64,
pub window_remaining_secs: u64,
pub is_exhausted: bool,
}Expand description
Budget information returned to callers.
Fields§
§tokens_remaining: u64Tokens remaining in the current window.
calls_remaining: u64Calls remaining in the current window.
window_remaining_secs: u64Seconds remaining until window resets.
is_exhausted: boolWhether all budget has been exhausted.
Trait Implementations§
Source§impl Clone for BudgetInfo
impl Clone for BudgetInfo
Source§fn clone(&self) -> BudgetInfo
fn clone(&self) -> BudgetInfo
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 BudgetInfo
impl RefUnwindSafe for BudgetInfo
impl Send for BudgetInfo
impl Sync for BudgetInfo
impl Unpin for BudgetInfo
impl UnsafeUnpin for BudgetInfo
impl UnwindSafe for BudgetInfo
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