pub struct RateLimitHeader {
pub remaining: u32,
pub reset: Seconds,
pub retry_after: Seconds,
}
Expand description
Unifies the different ratelimit headers available from the different remotes. Github API ratelimit headers: remaining: x-ratelimit-remaining reset: x-ratelimit-reset Gitlab API ratelimit headers: remaining: RateLimit-Remaining reset: RateLimit-Reset
Fields§
§remaining: u32
§reset: Seconds
§retry_after: Seconds
Implementations§
Trait Implementations§
source§impl Clone for RateLimitHeader
impl Clone for RateLimitHeader
source§fn clone(&self) -> RateLimitHeader
fn clone(&self) -> RateLimitHeader
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RateLimitHeader
impl Debug for RateLimitHeader
source§impl Default for RateLimitHeader
impl Default for RateLimitHeader
source§fn default() -> RateLimitHeader
fn default() -> RateLimitHeader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RateLimitHeader
impl RefUnwindSafe for RateLimitHeader
impl Send for RateLimitHeader
impl Sync for RateLimitHeader
impl Unpin for RateLimitHeader
impl UnwindSafe for RateLimitHeader
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)