pub struct RateLimitError {
pub api: ApiError,
pub reason: Option<String>,
pub retry_after: Option<Duration>,
pub reset_at: Option<String>,
pub reset_date: Option<String>,
pub limit: Option<i64>,
pub usage: Option<i64>,
pub remaining: Option<i64>,
pub needed: Option<i64>,
pub plan: Option<String>,
pub upgrade_url: Option<String>,
pub rate_limit: RateLimitHeaders,
}Expand description
A 429 response, with the quota fields from the body and the rate-limit headers.
Fields§
§api: ApiError§reason: Option<String>§retry_after: Option<Duration>§reset_at: Option<String>§reset_date: Option<String>§limit: Option<i64>§usage: Option<i64>§remaining: Option<i64>§needed: Option<i64>§plan: Option<String>§upgrade_url: Option<String>§rate_limit: RateLimitHeadersTrait Implementations§
Source§impl Clone for RateLimitError
impl Clone for RateLimitError
Source§impl Debug for RateLimitError
impl Debug for RateLimitError
Source§impl Display for RateLimitError
impl Display for RateLimitError
Source§impl Error for RateLimitError
impl Error for RateLimitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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