pub struct QueryResponse<T = ResponseData> {
pub archive_height: Option<u64>,
pub next_block: u64,
pub total_execution_time: u64,
pub data: T,
pub rollback_guard: Option<RollbackGuard>,
}
Expand description
Query response from hypersync instance. Contain next_block field in case query didn’t process all the block range
Fields§
§archive_height: Option<u64>
Current height of the source hypersync instance
next_block: u64
Next block to query for, the responses are paginated so the caller should continue the query from this block if they didn’t get responses up to the to_block they specified in the Query.
total_execution_time: u64
Total time it took the hypersync instance to execute the query.
data: T
Response data
rollback_guard: Option<RollbackGuard>
Rollback guard
Trait Implementations§
Source§impl<T: Clone> Clone for QueryResponse<T>
impl<T: Clone> Clone for QueryResponse<T>
Source§fn clone(&self) -> QueryResponse<T>
fn clone(&self) -> QueryResponse<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for QueryResponse<T>
impl<T: Debug> Debug for QueryResponse<T>
Source§impl From<&QueryResponse<ArrowResponseData>> for QueryResponse
impl From<&QueryResponse<ArrowResponseData>> for QueryResponse
Source§fn from(arrow_response: &ArrowResponse) -> Self
fn from(arrow_response: &ArrowResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for QueryResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for QueryResponse<T>where
T: RefUnwindSafe,
impl<T> Send for QueryResponse<T>where
T: Send,
impl<T> Sync for QueryResponse<T>where
T: Sync,
impl<T> Unpin for QueryResponse<T>where
T: Unpin,
impl<T> UnwindSafe for QueryResponse<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more