pub enum RateLimitAction {
Block,
Score,
}Expand description
What happens when a key exceeds its budget.
Variants§
Block
Reject immediately with HTTP 429 (Decision::Reject).
Score
Contribute score points to the cumulative anomaly score instead.
Trait Implementations§
Source§impl Clone for RateLimitAction
impl Clone for RateLimitAction
Source§fn clone(&self) -> RateLimitAction
fn clone(&self) -> RateLimitAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RateLimitAction
Source§impl Debug for RateLimitAction
impl Debug for RateLimitAction
Source§impl Default for RateLimitAction
impl Default for RateLimitAction
Source§fn default() -> RateLimitAction
fn default() -> RateLimitAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitAction
impl<'de> Deserialize<'de> for RateLimitAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RateLimitAction
Source§impl PartialEq for RateLimitAction
impl PartialEq for RateLimitAction
Source§fn eq(&self, other: &RateLimitAction) -> bool
fn eq(&self, other: &RateLimitAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RateLimitAction
Auto Trait Implementations§
impl Freeze for RateLimitAction
impl RefUnwindSafe for RateLimitAction
impl Send for RateLimitAction
impl Sync for RateLimitAction
impl Unpin for RateLimitAction
impl UnsafeUnpin for RateLimitAction
impl UnwindSafe for RateLimitAction
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