pub struct EndpointRateLimit {
pub window: Duration,
pub max_requests: u32,
}Expand description
Rate limit parameters for a single endpoint.
Fields§
§window: DurationSliding window duration.
max_requests: u32Maximum number of requests allowed within the window.
Trait Implementations§
Source§impl Clone for EndpointRateLimit
impl Clone for EndpointRateLimit
Source§fn clone(&self) -> EndpointRateLimit
fn clone(&self) -> EndpointRateLimit
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 EndpointRateLimit
impl RefUnwindSafe for EndpointRateLimit
impl Send for EndpointRateLimit
impl Sync for EndpointRateLimit
impl Unpin 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