#[non_exhaustive]pub struct Bucket {
pub limit: u16,
pub remaining: u16,
pub reset_at: Instant,
}Expand description
Rate limit information for one or more paths from previous
RateLimitHeaders.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.limit: u16Total number of permits until the bucket becomes exhausted.
remaining: u16Number of remaining permits until the bucket becomes exhausted.
reset_at: InstantTime at which the bucket resets.
Trait Implementations§
impl Copy for Bucket
impl Eq for Bucket
impl StructuralPartialEq for Bucket
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnwindSafe for Bucket
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