pub struct RateLimitResult {
pub allowed: bool,
pub remaining: u32,
pub reset: u64,
pub limit: usize,
}Expand description
Result of a rate limit check
Fields§
§allowed: bool§remaining: u32§reset: u64§limit: usizeTrait Implementations§
Source§impl Clone for RateLimitResult
impl Clone for RateLimitResult
Source§fn clone(&self) -> RateLimitResult
fn clone(&self) -> RateLimitResult
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 RateLimitResult
impl RefUnwindSafe for RateLimitResult
impl Send for RateLimitResult
impl Sync for RateLimitResult
impl Unpin for RateLimitResult
impl UnwindSafe for RateLimitResult
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