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: i64total_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 more