pub struct RateLimitHeadroom {
pub limit: Option<u64>,
pub remaining: Option<u64>,
pub reset_unix_secs: Option<u64>,
}Expand description
What GitHub last said about this credential’s hourly quota, read from a response that succeeded.
Rate limiting must be “displayed, never hidden”, and a state that only
appears once the quota is already gone is not a display of it. These are the
numbers f1’s host show and g3’s settings screen render alongside the
projected budget, so an operator can compare what the projection expected
against what the account is actually spending.
Fields§
§limit: Option<u64>x-ratelimit-limit.
remaining: Option<u64>x-ratelimit-remaining.
reset_unix_secs: Option<u64>x-ratelimit-reset, a Unix timestamp in seconds.
Trait Implementations§
Source§impl Clone for RateLimitHeadroom
impl Clone for RateLimitHeadroom
Source§fn clone(&self) -> RateLimitHeadroom
fn clone(&self) -> RateLimitHeadroom
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 RateLimitHeadroom
Source§impl Debug for RateLimitHeadroom
impl Debug for RateLimitHeadroom
Source§impl Default for RateLimitHeadroom
impl Default for RateLimitHeadroom
Source§fn default() -> RateLimitHeadroom
fn default() -> RateLimitHeadroom
Returns the “default value” for a type. Read more
impl Eq for RateLimitHeadroom
Source§impl PartialEq for RateLimitHeadroom
impl PartialEq for RateLimitHeadroom
impl StructuralPartialEq for RateLimitHeadroom
Auto Trait Implementations§
impl Freeze for RateLimitHeadroom
impl RefUnwindSafe for RateLimitHeadroom
impl Send for RateLimitHeadroom
impl Sync for RateLimitHeadroom
impl Unpin for RateLimitHeadroom
impl UnsafeUnpin for RateLimitHeadroom
impl UnwindSafe for RateLimitHeadroom
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.