pub enum RateLimitWindow {
FiveHour,
Hourly,
SevenDay,
Unknown(String),
}Expand description
The time window a rate limit applies to.
Variants§
FiveHour
Five-hour rolling window.
Hourly
Hourly rolling window.
SevenDay
Seven-day rolling window.
Unknown(String)
A window type not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitWindow
impl Clone for RateLimitWindow
Source§fn clone(&self) -> RateLimitWindow
fn clone(&self) -> RateLimitWindow
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 moreSource§impl Debug for RateLimitWindow
impl Debug for RateLimitWindow
Source§impl<'de> Deserialize<'de> for RateLimitWindow
impl<'de> Deserialize<'de> for RateLimitWindow
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RateLimitWindow
impl Display for RateLimitWindow
Source§impl From<&str> for RateLimitWindow
impl From<&str> for RateLimitWindow
Source§impl Hash for RateLimitWindow
impl Hash for RateLimitWindow
Source§impl PartialEq for RateLimitWindow
impl PartialEq for RateLimitWindow
Source§impl Serialize for RateLimitWindow
impl Serialize for RateLimitWindow
impl Eq for RateLimitWindow
impl StructuralPartialEq for RateLimitWindow
Auto Trait Implementations§
impl Freeze for RateLimitWindow
impl RefUnwindSafe for RateLimitWindow
impl Send for RateLimitWindow
impl Sync for RateLimitWindow
impl Unpin for RateLimitWindow
impl UnsafeUnpin for RateLimitWindow
impl UnwindSafe for RateLimitWindow
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