pub struct UnifiedWindowUsage {
pub utilization: f64,
pub resets_at: u64,
}Expand description
Usage for a single unified rate-limit window, carried in
UnifiedRateLimitWindows.
Fields§
§utilization: f64Fraction of the window used (usually 0.0–1.0; values above 1.0 occur when usage legitimately runs past a window’s cap).
resets_at: u64Unix epoch seconds when this window resets.
Trait Implementations§
Source§impl Clone for UnifiedWindowUsage
impl Clone for UnifiedWindowUsage
Source§fn clone(&self) -> UnifiedWindowUsage
fn clone(&self) -> UnifiedWindowUsage
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 UnifiedWindowUsage
impl Debug for UnifiedWindowUsage
Source§impl<'de> Deserialize<'de> for UnifiedWindowUsage
impl<'de> Deserialize<'de> for UnifiedWindowUsage
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
Source§impl PartialEq for UnifiedWindowUsage
impl PartialEq for UnifiedWindowUsage
Source§impl Serialize for UnifiedWindowUsage
impl Serialize for UnifiedWindowUsage
impl StructuralPartialEq for UnifiedWindowUsage
Auto Trait Implementations§
impl Freeze for UnifiedWindowUsage
impl RefUnwindSafe for UnifiedWindowUsage
impl Send for UnifiedWindowUsage
impl Sync for UnifiedWindowUsage
impl Unpin for UnifiedWindowUsage
impl UnsafeUnpin for UnifiedWindowUsage
impl UnwindSafe for UnifiedWindowUsage
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