pub struct RateLimitInfo {
pub requests_remaining: Option<u32>,
pub requests_limit: Option<u32>,
pub tokens_remaining: Option<u32>,
pub tokens_limit: Option<u32>,
pub reset_at: Option<i64>,
}Expand description
Rate limit information
Fields§
§requests_remaining: Option<u32>Requests remaining in current window
requests_limit: Option<u32>Request limit per window
tokens_remaining: Option<u32>Tokens remaining in current window
tokens_limit: Option<u32>Token limit per window
reset_at: Option<i64>Time when rate limit resets (Unix timestamp)
Trait Implementations§
Source§impl Clone for RateLimitInfo
impl Clone for RateLimitInfo
Source§fn clone(&self) -> RateLimitInfo
fn clone(&self) -> RateLimitInfo
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 moreAuto Trait Implementations§
impl Freeze for RateLimitInfo
impl RefUnwindSafe for RateLimitInfo
impl Send for RateLimitInfo
impl Sync for RateLimitInfo
impl Unpin for RateLimitInfo
impl UnsafeUnpin for RateLimitInfo
impl UnwindSafe for RateLimitInfo
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