pub struct RateLimitDimension {
pub max_requests: u32,
pub window_secs: u64,
}Expand description
Rate limit configuration for a single dimension
Fields§
§max_requests: u32Maximum number of errors allowed in the window
window_secs: u64Window duration in seconds
Trait Implementations§
Source§impl Clone for RateLimitDimension
impl Clone for RateLimitDimension
Source§fn clone(&self) -> RateLimitDimension
fn clone(&self) -> RateLimitDimension
Returns a duplicate of the value. Read more
1.0.0 · 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 RateLimitDimension
impl RefUnwindSafe for RateLimitDimension
impl Send for RateLimitDimension
impl Sync for RateLimitDimension
impl Unpin for RateLimitDimension
impl UnsafeUnpin for RateLimitDimension
impl UnwindSafe for RateLimitDimension
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