pub struct RateLimitHeaders {
pub limit: u32,
pub remaining: u32,
pub reset: u64,
}Expand description
Rate limit headers extractor
Adds X-RateLimit-* headers to responses
Fields§
§limit: u32§remaining: u32§reset: u64Implementations§
Source§impl RateLimitHeaders
impl RateLimitHeaders
Sourcepub fn apply_to_response(&self, response: Response) -> Response
pub fn apply_to_response(&self, response: Response) -> Response
Apply rate limit headers to a response
Auto Trait Implementations§
impl Freeze for RateLimitHeaders
impl RefUnwindSafe for RateLimitHeaders
impl Send for RateLimitHeaders
impl Sync for RateLimitHeaders
impl Unpin for RateLimitHeaders
impl UnwindSafe for RateLimitHeaders
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