pub struct RateLimit {
pub limit: Option<u32>,
pub remaining: Option<u32>,
pub reset: Option<u64>,
}Expand description
A snapshot of the rate-limit state reported by the API on the last response.
Fields§
§limit: Option<u32>Maximum number of requests permitted in the current window.
remaining: Option<u32>Requests remaining in the current window.
reset: Option<u64>Seconds until the current window resets.
Implementations§
Trait Implementations§
impl Copy for RateLimit
impl Eq for RateLimit
impl StructuralPartialEq for RateLimit
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnsafeUnpin for RateLimit
impl UnwindSafe for RateLimit
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