pub struct RateLimitDefaults {
pub enabled: bool,
pub time_window: f64,
pub max_requests: f64,
}Expand description
Global rate-limit defaults applied to newly-created keys.
Fields§
§enabled: bool§time_window: f64Default time window in milliseconds.
max_requests: f64Default max requests per window.
Trait Implementations§
Source§impl Clone for RateLimitDefaults
impl Clone for RateLimitDefaults
Source§impl Debug for RateLimitDefaults
impl Debug for RateLimitDefaults
Auto Trait Implementations§
impl Freeze for RateLimitDefaults
impl RefUnwindSafe for RateLimitDefaults
impl Send for RateLimitDefaults
impl Sync for RateLimitDefaults
impl Unpin for RateLimitDefaults
impl UnsafeUnpin for RateLimitDefaults
impl UnwindSafe for RateLimitDefaults
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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