pub struct RateLimitQuota {
pub limit: u64,
pub remaining: u64,
pub reset: Option<u64>,
}Expand description
What a limit has left for the client of this request, as the
X-RateLimit-* response headers tell it.
Fields§
§limit: u64What the limit allows: requests in any one interval, or at once.
remaining: u64How many of them are left, this request counted.
reset: Option<u64>In how many seconds all of them are back if nothing more is sent.
None for a limit on concurrent requests, where that is whenever
they end.
Trait Implementations§
Source§impl Clone for RateLimitQuota
impl Clone for RateLimitQuota
impl Copy for RateLimitQuota
Source§impl Debug for RateLimitQuota
impl Debug for RateLimitQuota
impl Eq for RateLimitQuota
Source§impl PartialEq for RateLimitQuota
impl PartialEq for RateLimitQuota
impl StructuralPartialEq for RateLimitQuota
Auto Trait Implementations§
impl Freeze for RateLimitQuota
impl RefUnwindSafe for RateLimitQuota
impl Send for RateLimitQuota
impl Sync for RateLimitQuota
impl Unpin for RateLimitQuota
impl UnsafeUnpin for RateLimitQuota
impl UnwindSafe for RateLimitQuota
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.