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: DurationThe rate limiting interval.
max_requests: u64The total requests to be allowed within the interval.
key: StringThe 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 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 SimpleInput
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