pub enum RateLimitTier {
Endpoint,
Route,
Geo,
Global,
}Expand description
The rate-limit tier a RateLimiter::check_tiers decision was made
under (endpoint, route, geo, global - the reference check order).
Variants§
Endpoint
endpoint_rate_limits[path]: the config-level per-endpoint tier.
Route
The route decorator’s rate_limit tier.
Geo
The route decorator’s geo_rate_limits country tier.
Global
The flat config rate_limit tier (the reference default).
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitTier
impl Clone for RateLimitTier
impl Copy for RateLimitTier
Source§impl Debug for RateLimitTier
impl Debug for RateLimitTier
impl Eq for RateLimitTier
Source§impl PartialEq for RateLimitTier
impl PartialEq for RateLimitTier
impl StructuralPartialEq for RateLimitTier
Auto Trait Implementations§
impl Freeze for RateLimitTier
impl RefUnwindSafe for RateLimitTier
impl Send for RateLimitTier
impl Sync for RateLimitTier
impl Unpin for RateLimitTier
impl UnsafeUnpin for RateLimitTier
impl UnwindSafe for RateLimitTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.