pub struct SearchTransactionsResponse {
pub transactions: Vec<BlockTransaction>,
pub total_count: i64,
pub next_offset: Option<i64>,
}
Expand description
SearchTransactionsResponse : SearchTransactionsResponse contains an ordered collection of BlockTransactions that match the query in SearchTransactionsRequest. These BlockTransactions are sorted from most recent block to oldest block.
Fields§
§transactions: Vec<BlockTransaction>
transactions is an array of BlockTransactions sorted by most recent BlockIdentifier (meaning that transactions in recent blocks appear first). If there are many transactions for a particular search, transactions may not contain all matching transactions. It is up to the caller to paginate these transactions using the max_block field.
total_count: i64
total_count is the number of results for a given search. Callers typically use this value to concurrently fetch results by offset or to display a virtual page number associated with results.
next_offset: Option<i64>
next_offset is the next offset to use when paginating through transaction results. If this field is not populated, there are no more transactions to query.
Implementations§
source§impl SearchTransactionsResponse
impl SearchTransactionsResponse
sourcepub fn new(
transactions: Vec<BlockTransaction>,
total_count: i64
) -> SearchTransactionsResponse
pub fn new( transactions: Vec<BlockTransaction>, total_count: i64 ) -> SearchTransactionsResponse
SearchTransactionsResponse contains an ordered collection of BlockTransactions that match the query in SearchTransactionsRequest. These BlockTransactions are sorted from most recent block to oldest block.
Trait Implementations§
source§impl Clone for SearchTransactionsResponse
impl Clone for SearchTransactionsResponse
source§fn clone(&self) -> SearchTransactionsResponse
fn clone(&self) -> SearchTransactionsResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchTransactionsResponse
impl Debug for SearchTransactionsResponse
source§impl Default for SearchTransactionsResponse
impl Default for SearchTransactionsResponse
source§fn default() -> SearchTransactionsResponse
fn default() -> SearchTransactionsResponse
source§impl<'de> Deserialize<'de> for SearchTransactionsResponse
impl<'de> Deserialize<'de> for SearchTransactionsResponse
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>,
source§impl PartialEq<SearchTransactionsResponse> for SearchTransactionsResponse
impl PartialEq<SearchTransactionsResponse> for SearchTransactionsResponse
source§fn eq(&self, other: &SearchTransactionsResponse) -> bool
fn eq(&self, other: &SearchTransactionsResponse) -> bool
self
and other
values to be equal, and is used
by ==
.