pub struct ApiKeyRateLimitOptions {
pub enabled: bool,
pub time_window: i64,
pub max_requests: i64,
}Fields§
§enabled: bool§time_window: i64§max_requests: i64Trait Implementations§
Source§impl Clone for ApiKeyRateLimitOptions
impl Clone for ApiKeyRateLimitOptions
Source§fn clone(&self) -> ApiKeyRateLimitOptions
fn clone(&self) -> ApiKeyRateLimitOptions
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 moreSource§impl Debug for ApiKeyRateLimitOptions
impl Debug for ApiKeyRateLimitOptions
Source§impl Default for ApiKeyRateLimitOptions
impl Default for ApiKeyRateLimitOptions
Source§impl<'de> Deserialize<'de> for ApiKeyRateLimitOptions
impl<'de> Deserialize<'de> for ApiKeyRateLimitOptions
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
Source§impl PartialEq for ApiKeyRateLimitOptions
impl PartialEq for ApiKeyRateLimitOptions
Source§fn eq(&self, other: &ApiKeyRateLimitOptions) -> bool
fn eq(&self, other: &ApiKeyRateLimitOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApiKeyRateLimitOptions
impl Serialize for ApiKeyRateLimitOptions
impl Eq for ApiKeyRateLimitOptions
impl StructuralPartialEq for ApiKeyRateLimitOptions
Auto Trait Implementations§
impl Freeze for ApiKeyRateLimitOptions
impl RefUnwindSafe for ApiKeyRateLimitOptions
impl Send for ApiKeyRateLimitOptions
impl Sync for ApiKeyRateLimitOptions
impl Unpin for ApiKeyRateLimitOptions
impl UnsafeUnpin for ApiKeyRateLimitOptions
impl UnwindSafe for ApiKeyRateLimitOptions
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.