pub struct FilterBuilder { /* private fields */ }
Expand description
Filter Builder
Implementations§
Source§impl FilterBuilder
impl FilterBuilder
Sourcepub fn from_block(self, block: BlockNumber) -> FilterBuilder
pub fn from_block(self, block: BlockNumber) -> FilterBuilder
Sets from_block
. The fields from_block
and block_hash
are
mutually exclusive. Setting from_block
will clear a previously set
block_hash
.
Sourcepub fn to_block(self, block: BlockNumber) -> FilterBuilder
pub fn to_block(self, block: BlockNumber) -> FilterBuilder
Sets to_block
. The fields to_block
and block_hash
are mutually
exclusive. Setting to_block
will clear a previously set block_hash
.
Sourcepub fn block_hash(self, hash: H256) -> FilterBuilder
pub fn block_hash(self, hash: H256) -> FilterBuilder
Sets block_hash
. The field block_hash
and the pair from_block
and
to_block
are mutually exclusive. Setting block_hash
will clear a
previously set from_block
and to_block
.
Sourcepub fn address(self, address: Vec<H160>) -> FilterBuilder
pub fn address(self, address: Vec<H160>) -> FilterBuilder
Single address
Sourcepub fn topics(
self,
topic1: Option<Vec<H256>>,
topic2: Option<Vec<H256>>,
topic3: Option<Vec<H256>>,
topic4: Option<Vec<H256>>,
) -> FilterBuilder
pub fn topics( self, topic1: Option<Vec<H256>>, topic2: Option<Vec<H256>>, topic3: Option<Vec<H256>>, topic4: Option<Vec<H256>>, ) -> FilterBuilder
Topics
Sourcepub fn topic_filter(self, topic_filter: TopicFilter) -> FilterBuilder
pub fn topic_filter(self, topic_filter: TopicFilter) -> FilterBuilder
Sets the topics according to the given ethabi
topic filter
Sourcepub fn limit(self, limit: usize) -> FilterBuilder
pub fn limit(self, limit: usize) -> FilterBuilder
Limit the result
Trait Implementations§
Source§impl Clone for FilterBuilder
impl Clone for FilterBuilder
Source§fn clone(&self) -> FilterBuilder
fn clone(&self) -> FilterBuilder
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 Default for FilterBuilder
impl Default for FilterBuilder
Source§fn default() -> FilterBuilder
fn default() -> FilterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterBuilder
impl RefUnwindSafe for FilterBuilder
impl Send for FilterBuilder
impl Sync for FilterBuilder
impl Unpin for FilterBuilder
impl UnwindSafe for FilterBuilder
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