pub struct PerKeyRateLimit {
pub enabled: bool,
pub rate: String,
pub burst: u32,
}Expand description
Per-principal rate limit (keyed by API-key id / JWT subject).
Fields§
§enabled: bool§rate: String§burst: u32Trait Implementations§
Source§impl Clone for PerKeyRateLimit
impl Clone for PerKeyRateLimit
Source§fn clone(&self) -> PerKeyRateLimit
fn clone(&self) -> PerKeyRateLimit
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 PerKeyRateLimit
impl Debug for PerKeyRateLimit
Source§impl Default for PerKeyRateLimit
impl Default for PerKeyRateLimit
Source§impl<'de> Deserialize<'de> for PerKeyRateLimitwhere
PerKeyRateLimit: Default,
impl<'de> Deserialize<'de> for PerKeyRateLimitwhere
PerKeyRateLimit: Default,
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
Auto Trait Implementations§
impl Freeze for PerKeyRateLimit
impl RefUnwindSafe for PerKeyRateLimit
impl Send for PerKeyRateLimit
impl Sync for PerKeyRateLimit
impl Unpin for PerKeyRateLimit
impl UnsafeUnpin for PerKeyRateLimit
impl UnwindSafe for PerKeyRateLimit
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