pub struct RateLimitError {
pub api_error: ApiError,
pub limit: i64,
pub remaining: i64,
pub reset: i64,
pub retry_after: i64,
}Expand description
Ошибка превышения лимита запросов
Fields§
§api_error: ApiErrorБазовая ошибка API
limit: i64Максимальное количество запросов
remaining: i64Оставшееся количество запросов
reset: i64Время сброса лимита (Unix timestamp)
retry_after: i64Через сколько секунд можно повторить запрос
Trait Implementations§
Source§impl Clone for RateLimitError
impl Clone for RateLimitError
Source§fn clone(&self) -> RateLimitError
fn clone(&self) -> RateLimitError
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 moreSource§impl Debug for RateLimitError
impl Debug for RateLimitError
Auto Trait Implementations§
impl Freeze for RateLimitError
impl RefUnwindSafe for RateLimitError
impl Send for RateLimitError
impl Sync for RateLimitError
impl Unpin for RateLimitError
impl UnsafeUnpin for RateLimitError
impl UnwindSafe for RateLimitError
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