pub struct RateLimitEvidence {
pub remaining: Option<u64>,
pub reset_unix_secs: Option<u64>,
pub retry_after: Option<Duration>,
}Expand description
What GitHub said about its own rate limit on a response that failed.
Evidence, carried across the c2/c3 seam. Every field is what the wire
said, and none of them has been interpreted.
Fields§
§remaining: Option<u64>x-ratelimit-remaining. Zero is GitHub’s primary rate limit.
reset_unix_secs: Option<u64>x-ratelimit-reset, a Unix timestamp in seconds.
retry_after: Option<Duration>retry-after, which secondary rate limits send instead.
Trait Implementations§
Source§impl Clone for RateLimitEvidence
impl Clone for RateLimitEvidence
Source§fn clone(&self) -> RateLimitEvidence
fn clone(&self) -> RateLimitEvidence
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 moreimpl Copy for RateLimitEvidence
Source§impl Debug for RateLimitEvidence
impl Debug for RateLimitEvidence
impl Eq for RateLimitEvidence
Source§impl PartialEq for RateLimitEvidence
impl PartialEq for RateLimitEvidence
impl StructuralPartialEq for RateLimitEvidence
Auto Trait Implementations§
impl Freeze for RateLimitEvidence
impl RefUnwindSafe for RateLimitEvidence
impl Send for RateLimitEvidence
impl Sync for RateLimitEvidence
impl Unpin for RateLimitEvidence
impl UnsafeUnpin for RateLimitEvidence
impl UnwindSafe for RateLimitEvidence
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
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§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.