pub struct BudgetCapacity {
pub count: usize,
pub bytes: usize,
pub rate: Option<RateLimit>,
}Expand description
Represents budget capacity.
Fields§
§count: usizeThe count value.
bytes: usizeThe bytes value.
rate: Option<RateLimit>The rate value.
Implementations§
Trait Implementations§
Source§impl Clone for BudgetCapacity
impl Clone for BudgetCapacity
impl Copy for BudgetCapacity
Source§impl Debug for BudgetCapacity
impl Debug for BudgetCapacity
Source§impl Default for BudgetCapacity
impl Default for BudgetCapacity
impl Eq for BudgetCapacity
Source§impl PartialEq for BudgetCapacity
impl PartialEq for BudgetCapacity
impl StructuralPartialEq for BudgetCapacity
Auto Trait Implementations§
impl Freeze for BudgetCapacity
impl RefUnwindSafe for BudgetCapacity
impl Send for BudgetCapacity
impl Sync for BudgetCapacity
impl Unpin for BudgetCapacity
impl UnsafeUnpin for BudgetCapacity
impl UnwindSafe for BudgetCapacity
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