pub struct RateLimitDefaults {
pub enabled: bool,
pub time_window: i64,
pub max_requests: i64,
}Expand description
Global rate-limit defaults applied to newly-created keys.
Fields§
§enabled: bool§time_window: i64Default time window in milliseconds.
max_requests: i64Default max requests per window.
Trait Implementations§
Source§impl Clone for RateLimitDefaults
impl Clone for RateLimitDefaults
Source§fn clone(&self) -> RateLimitDefaults
fn clone(&self) -> RateLimitDefaults
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 moreSource§impl Debug for RateLimitDefaults
impl Debug for RateLimitDefaults
Source§impl Default for RateLimitDefaults
impl Default for RateLimitDefaults
Source§fn default() -> RateLimitDefaults
fn default() -> RateLimitDefaults
Returns the “default value” for a type. Read more
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<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