pub struct RateLimitConfig {
pub requests_per_minute: u32,
pub burst_size: u32,
pub per_client: bool,
}
Expand description
Rate limiting configuration
Fieldsยง
ยงrequests_per_minute: u32
ยงburst_size: u32
ยงper_client: bool
Trait Implementationsยง
Sourceยงimpl Clone for RateLimitConfig
impl Clone for RateLimitConfig
Sourceยงfn clone(&self) -> RateLimitConfig
fn clone(&self) -> RateLimitConfig
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 RateLimitConfig
impl RefUnwindSafe for RateLimitConfig
impl Send for RateLimitConfig
impl Sync for RateLimitConfig
impl Unpin for RateLimitConfig
impl UnwindSafe for RateLimitConfig
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