pub struct RateLimitSection {
pub enabled: bool,
pub requests_per_window: u32,
pub window_secs: u64,
}Expand description
Rate limiting configuration.
Fields§
§enabled: boolEnable rate limiting.
requests_per_window: u32Requests per window.
window_secs: u64Window size in seconds.
Trait Implementations§
Source§impl Clone for RateLimitSection
impl Clone for RateLimitSection
Source§fn clone(&self) -> RateLimitSection
fn clone(&self) -> RateLimitSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RateLimitSection
impl Debug for RateLimitSection
Source§impl Default for RateLimitSection
impl Default for RateLimitSection
Source§impl<'de> Deserialize<'de> for RateLimitSectionwhere
RateLimitSection: Default,
impl<'de> Deserialize<'de> for RateLimitSectionwhere
RateLimitSection: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RateLimitSection
impl RefUnwindSafe for RateLimitSection
impl Send for RateLimitSection
impl Sync for RateLimitSection
impl Unpin for RateLimitSection
impl UnsafeUnpin for RateLimitSection
impl UnwindSafe for RateLimitSection
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