pub struct SearchTransactionsRequest {
Show 13 fields pub network_identifier: NetworkIdentifier, pub operator: Option<Operator>, pub max_block: Option<i64>, pub offset: Option<i64>, pub limit: Option<i64>, pub transaction_identifier: Option<TransactionIdentifier>, pub account_identifier: Option<AccountIdentifier>, pub coin_identifier: Option<CoinIdentifier>, pub currency: Option<Currency>, pub status: Option<String>, pub type: Option<String>, pub address: Option<String>, pub success: Option<bool>,
}
Expand description

SearchTransactionsRequest : SearchTransactionsRequest is used to search for transactions matching a set of provided conditions in canonical blocks.

Fields§

§network_identifier: NetworkIdentifier§operator: Option<Operator>§max_block: Option<i64>

max_block is the largest block index to consider when searching for transactions. If this field is not populated, the current block is considered the max_block. If you do not specify a max_block, it is possible a newly synced block will interfere with paginated transaction queries (as the offset could become invalid with newly added rows).

§offset: Option<i64>

offset is the offset into the query result to start returning transactions. If any search conditions are changed, the query offset will change and you must restart your search iteration.

§limit: Option<i64>

limit is the maximum number of transactions to return in one call. The implementation may return <= limit transactions.

§transaction_identifier: Option<TransactionIdentifier>§account_identifier: Option<AccountIdentifier>§coin_identifier: Option<CoinIdentifier>§currency: Option<Currency>§status: Option<String>

status is the network-specific operation type.

§type: Option<String>

type is the network-specific operation type.

§address: Option<String>

address is AccountIdentifier.Address. This is used to get all transactions related to an AccountIdentifier.Address, regardless of SubAccountIdentifier.

§success: Option<bool>

success is a synthetic condition populated by parsing network-specific operation statuses (using the mapping provided in /network/options).

Implementations§

source§

impl SearchTransactionsRequest

source

pub fn new(network_identifier: NetworkIdentifier) -> SearchTransactionsRequest

SearchTransactionsRequest is used to search for transactions matching a set of provided conditions in canonical blocks.

Trait Implementations§

source§

impl Clone for SearchTransactionsRequest

source§

fn clone(&self) -> SearchTransactionsRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SearchTransactionsRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SearchTransactionsRequest

source§

fn default() -> SearchTransactionsRequest

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SearchTransactionsRequest

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<SearchTransactionsRequest> for SearchTransactionsRequest

source§

fn eq(&self, other: &SearchTransactionsRequest) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SearchTransactionsRequest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for SearchTransactionsRequest

source§

impl StructuralEq for SearchTransactionsRequest

source§

impl StructuralPartialEq for SearchTransactionsRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,