pub struct RateLimitRejection {
pub retry_after_secs: u64,
pub scope: &'static str,
}Expand description
Result of a failed rate limit check.
Fields§
§retry_after_secs: u64Seconds the client should wait before retrying.
scope: &'static strWhich limiter scope rejected the request (e.g. “per_ip”, “per_target”, “global”).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateLimitRejection
impl RefUnwindSafe for RateLimitRejection
impl Send for RateLimitRejection
impl Sync for RateLimitRejection
impl Unpin for RateLimitRejection
impl UnsafeUnpin for RateLimitRejection
impl UnwindSafe for RateLimitRejection
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