#[non_exhaustive]pub struct RateLimiter {
pub name: String,
pub bandwidth_limit: Option<String>,
pub burst_size_limit: Option<String>,
}Expand description
A rate-limiters entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§bandwidth_limit: Option<String>Kilobits per second.
burst_size_limit: Option<String>Bytes.
Trait Implementations§
Source§impl Clone for RateLimiter
impl Clone for RateLimiter
Source§impl Debug for RateLimiter
impl Debug for RateLimiter
impl Eq for RateLimiter
Source§impl PartialEq for RateLimiter
impl PartialEq for RateLimiter
impl StructuralPartialEq for RateLimiter
Auto Trait Implementations§
impl Forget for RateLimiter
impl Freeze for RateLimiter
impl Move for RateLimiter
impl RefUnwindSafe for RateLimiter
impl Send for RateLimiterwhere
RawVecInner: Send,
impl Sync for RateLimiterwhere
RawVecInner: Sync,
impl Unpin for RateLimiter
impl UnsafeUnpin for RateLimiter
impl UnwindSafe for RateLimiterwhere
RawVecInner: UnwindSafe,
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