pub struct RateLimitStatus {
pub limit: u32,
pub remaining: u32,
pub reset_time: DateTime<Utc>,
pub reset_in: Duration,
}Expand description
Snapshot of the current rate limit status.
Fields§
§limit: u32Maximum requests allowed per window.
remaining: u32Requests remaining in the current window.
reset_time: DateTime<Utc>When the rate limit window resets.
reset_in: DurationDuration until the window resets.
Trait Implementations§
Source§impl Clone for RateLimitStatus
impl Clone for RateLimitStatus
Source§fn clone(&self) -> RateLimitStatus
fn clone(&self) -> RateLimitStatus
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 moreAuto Trait Implementations§
impl Freeze for RateLimitStatus
impl RefUnwindSafe for RateLimitStatus
impl Send for RateLimitStatus
impl Sync for RateLimitStatus
impl Unpin for RateLimitStatus
impl UnsafeUnpin for RateLimitStatus
impl UnwindSafe for RateLimitStatus
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