pub struct TxOptions {
pub page_number: Option<u32>,
pub page_size: Option<u32>,
pub quote_currency: Option<String>,
pub with_log_events: Option<bool>,
pub starting_block: Option<u64>,
pub ending_block: Option<u64>,
}Expand description
Options for customizing transaction queries.
Fields§
§page_number: Option<u32>Page number for pagination (0-indexed).
page_size: Option<u32>Number of items per page.
quote_currency: Option<String>Quote currency for pricing (e.g., “USD”, “ETH”).
with_log_events: Option<bool>Include or exclude log events.
starting_block: Option<u64>Start block height for filtering.
ending_block: Option<u64>End block height for filtering.
Implementations§
Source§impl TxOptions
impl TxOptions
Sourcepub fn page_number(self, page: u32) -> Self
pub fn page_number(self, page: u32) -> Self
Set page number for pagination.
Sourcepub fn quote_currency<S: Into<String>>(self, currency: S) -> Self
pub fn quote_currency<S: Into<String>>(self, currency: S) -> Self
Set the quote currency.
Sourcepub fn with_log_events(self, include_logs: bool) -> Self
pub fn with_log_events(self, include_logs: bool) -> Self
Include or exclude log events in the response.
Sourcepub fn starting_block(self, block: u64) -> Self
pub fn starting_block(self, block: u64) -> Self
Set starting block for filtering.
Sourcepub fn ending_block(self, block: u64) -> Self
pub fn ending_block(self, block: u64) -> Self
Set ending block for filtering.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxOptions
impl RefUnwindSafe for TxOptions
impl Send for TxOptions
impl Sync for TxOptions
impl Unpin for TxOptions
impl UnwindSafe for TxOptions
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