pub struct QueryResponseWithRateLimit<T> {
pub response: T,
pub rate_limit: RateLimitInfo,
}Expand description
Response that includes rate limit information from the server.
Returned by Client::get_with_rate_limit
and Client::get_arrow_with_rate_limit.
Use this when you need to inspect rate limit headers for external monitoring
or coordination across systems.
Mirrors the EVM hypersync-client type of the same name, field for field,
so consumers can share back-off logic across both clients.
Fields§
§response: TThe query response data.
rate_limit: RateLimitInfoRate limit information from response headers (if present).
Trait Implementations§
Source§impl<T: Clone> Clone for QueryResponseWithRateLimit<T>
impl<T: Clone> Clone for QueryResponseWithRateLimit<T>
Source§fn clone(&self) -> QueryResponseWithRateLimit<T>
fn clone(&self) -> QueryResponseWithRateLimit<T>
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<T> Freeze for QueryResponseWithRateLimit<T>where
T: Freeze,
impl<T> RefUnwindSafe for QueryResponseWithRateLimit<T>where
T: RefUnwindSafe,
impl<T> Send for QueryResponseWithRateLimit<T>where
T: Send,
impl<T> Sync for QueryResponseWithRateLimit<T>where
T: Sync,
impl<T> Unpin for QueryResponseWithRateLimit<T>where
T: Unpin,
impl<T> UnsafeUnpin for QueryResponseWithRateLimit<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for QueryResponseWithRateLimit<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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