pub struct RateLimitWindow {
pub resets_at: i64,
pub used_percent: i32,
pub window_duration_mins: i64,
}Expand description
A rate-limit window descriptor used inside RateLimits.
Fields§
§resets_at: i64Unix timestamp (seconds) at which this rate-limit window resets.
used_percent: i32Percentage of the window already consumed (0-100).
window_duration_mins: i64Length of the rate-limit window, in minutes.
Trait Implementations§
Source§impl Clone for RateLimitWindow
impl Clone for RateLimitWindow
Source§fn clone(&self) -> RateLimitWindow
fn clone(&self) -> RateLimitWindow
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 RateLimitWindow
impl Debug for RateLimitWindow
Source§impl<'de> Deserialize<'de> for RateLimitWindow
impl<'de> Deserialize<'de> for RateLimitWindow
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 RateLimitWindow
impl RefUnwindSafe for RateLimitWindow
impl Send for RateLimitWindow
impl Sync for RateLimitWindow
impl Unpin for RateLimitWindow
impl UnsafeUnpin for RateLimitWindow
impl UnwindSafe for RateLimitWindow
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