pub struct RateLimitStatus {
pub available: bool,
pub wait_time: Option<Duration>,
}Expand description
Rate limit status information
Fields§
§available: boolWhether a request can be made immediately
wait_time: Option<Duration>Time to wait before next request (if not available)
Trait Implementations§
Source§impl Clone for RateLimitStatus
impl Clone for RateLimitStatus
Source§fn clone(&self) -> RateLimitStatus
fn clone(&self) -> RateLimitStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RateLimitStatus
impl RefUnwindSafe for RateLimitStatus
impl Send for RateLimitStatus
impl Sync for RateLimitStatus
impl Unpin for RateLimitStatus
impl UnwindSafe for RateLimitStatus
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