pub struct RateLimitPolicy {
pub policy_id: String,
pub name: String,
pub strategy: RateLimitStrategy,
pub requests_per_second: u32,
pub burst_size: u32,
pub window_size_secs: u32,
pub enabled: bool,
}Expand description
Host-supplied rate-limit policy record.
Fields§
§policy_id: String§name: String§strategy: RateLimitStrategy§requests_per_second: u32§burst_size: u32§window_size_secs: u32§enabled: boolTrait Implementations§
Source§impl Clone for RateLimitPolicy
impl Clone for RateLimitPolicy
Source§fn clone(&self) -> RateLimitPolicy
fn clone(&self) -> RateLimitPolicy
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 RateLimitPolicy
impl Debug for RateLimitPolicy
Source§impl<'de> Deserialize<'de> for RateLimitPolicy
impl<'de> Deserialize<'de> for RateLimitPolicy
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 RateLimitPolicy
Source§impl PartialEq for RateLimitPolicy
impl PartialEq for RateLimitPolicy
Source§impl Serialize for RateLimitPolicy
impl Serialize for RateLimitPolicy
impl StructuralPartialEq for RateLimitPolicy
Auto Trait Implementations§
impl Freeze for RateLimitPolicy
impl RefUnwindSafe for RateLimitPolicy
impl Send for RateLimitPolicy
impl Sync for RateLimitPolicy
impl Unpin for RateLimitPolicy
impl UnsafeUnpin for RateLimitPolicy
impl UnwindSafe for RateLimitPolicy
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more