pub struct QueryRateLimit {
pub cost: u64,
pub used: u64,
pub limit: u64,
pub remaining: u64,
pub reset: i64,
}Expand description
The rateLimit block folded into every PR-poll reply (#1389, fix 8).
Carries the query’s own point cost plus the live graphql budget. Every field
is what GitHub’s rateLimit object reports; reset is resetAt (ISO-8601)
parsed to a Unix epoch so it drops straight into a
RateLimitResource.
Fields§
§cost: u64The point cost GitHub charged for this query.
used: u64Points spent in the current graphql window.
limit: u64The window ceiling (5,000/hour today).
remaining: u64Points remaining in the window.
reset: i64When the window resets, as a Unix epoch (seconds); 0 if resetAt was
absent or unparseable.
Trait Implementations§
Source§impl Clone for QueryRateLimit
impl Clone for QueryRateLimit
Source§fn clone(&self) -> QueryRateLimit
fn clone(&self) -> QueryRateLimit
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 QueryRateLimit
Source§impl Debug for QueryRateLimit
impl Debug for QueryRateLimit
impl Eq for QueryRateLimit
Source§impl PartialEq for QueryRateLimit
impl PartialEq for QueryRateLimit
impl StructuralPartialEq for QueryRateLimit
Auto Trait Implementations§
impl Freeze for QueryRateLimit
impl RefUnwindSafe for QueryRateLimit
impl Send for QueryRateLimit
impl Sync for QueryRateLimit
impl Unpin for QueryRateLimit
impl UnsafeUnpin for QueryRateLimit
impl UnwindSafe for QueryRateLimit
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.