Struct actix_extensible_rate_limit::backend::SimpleInput
source · pub struct SimpleInput {
pub interval: Duration,
pub max_requests: u64,
pub key: String,
}
Expand description
A default Backend Input structure.
This may not be suitable for all use-cases.
Fields§
§interval: Duration
The rate limiting interval.
max_requests: u64
The total requests to be allowed within the interval.
key: String
The rate limit key to be used for this request.
Trait Implementations§
source§impl Clone for SimpleInput
impl Clone for SimpleInput
source§fn clone(&self) -> SimpleInput
fn clone(&self) -> SimpleInput
Returns a copy 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 RefUnwindSafe for SimpleInput
impl Send for SimpleInput
impl Sync for SimpleInput
impl Unpin for SimpleInput
impl UnwindSafe for SimpleInput
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