#[repr(align(16))]pub struct RateLimit {
pub limit_type: &'static str,
pub interval: &'static str,
pub interval_num: u32,
pub limit: u64,
}Expand description
Memory-efficient rate limit information with enhanced details Optimized for minimal allocation and cache efficiency
Fields§
§limit_type: &'static strType of limit as a String (e.g., “REQUEST_WEIGHT”, “ORDERS”)
interval: &'static strInterval type (e.g., “MINUTE”, “SECOND”, “DAY”)
interval_num: u32Number of intervals (e.g., 1 for 1 MINUTE)
limit: u64Maximum count/weight allowed in the interval
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnwindSafe for RateLimit
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