pub struct RateLimitError {
pub error: RateLimitErrorError,
pub limit: i64,
pub retry_after_seconds: i64,
pub window_seconds: i64,
}Expand description
Body returned with HTTP 429 from POST /rpc/{network} when the
caller has exceeded the per-agent, per-network request budget.
Fields§
§error: RateLimitErrorError§limit: i64Maximum requests allowed per agent, per network, per window
retry_after_seconds: i64Seconds until the current window closes. Mirrors the
Retry-After response header.
window_seconds: i64Length of the rate-limit window in seconds, anchored at the bucket’s first request after an idle gap
Trait Implementations§
Source§impl Clone for RateLimitError
impl Clone for RateLimitError
Source§impl Debug for RateLimitError
impl Debug for RateLimitError
Source§impl<'de> Deserialize<'de> for RateLimitError
impl<'de> Deserialize<'de> for RateLimitError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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