pub struct PathRateLimit {
pub path: String,
pub requests_per_window: u32,
}Expand description
Per-path rate limit override.
Fields§
§path: StringPath pattern (glob).
requests_per_window: u32Maximum requests per window for this path.
Trait Implementations§
Source§impl Clone for PathRateLimit
impl Clone for PathRateLimit
Source§fn clone(&self) -> PathRateLimit
fn clone(&self) -> PathRateLimit
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 PathRateLimit
impl Debug for PathRateLimit
Source§impl<'de> Deserialize<'de> for PathRateLimit
impl<'de> Deserialize<'de> for PathRateLimit
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 PathRateLimit
impl RefUnwindSafe for PathRateLimit
impl Send for PathRateLimit
impl Sync for PathRateLimit
impl Unpin for PathRateLimit
impl UnsafeUnpin for PathRateLimit
impl UnwindSafe for PathRateLimit
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