pub struct EndpointRateLimit {
pub window_seconds: f64,
pub max_requests: f64,
}Expand description
Rate limit parameters for a single endpoint.
Fields§
§window_seconds: f64Rolling inactivity window, extended by each allowed request.
max_requests: f64Maximum number of requests allowed within the window.
Trait Implementations§
Source§impl Clone for EndpointRateLimit
impl Clone for EndpointRateLimit
Auto Trait Implementations§
impl Freeze for EndpointRateLimit
impl RefUnwindSafe for EndpointRateLimit
impl Send for EndpointRateLimit
impl Sync for EndpointRateLimit
impl Unpin for EndpointRateLimit
impl UnsafeUnpin for EndpointRateLimit
impl UnwindSafe for EndpointRateLimit
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