pub struct QueryBuilder { /* private fields */ }
Implementations§
Source§impl QueryBuilder
impl QueryBuilder
pub fn create_from_transaction( tx: Transaction, rx: TransactionReceipt, encoding: EncodingVersion, ) -> Result<QueryBuilder, QueryBuilderError>
pub fn set_abi_provider(&mut self, abi_provider: Box<dyn AbiProvider>)
pub async fn function_builder( &mut self, name_or_signature: String, configurator: fn(&mut QueryBuilderForFunction) -> Result<(), QueryBuilderError>, ) -> Result<&mut Self, QueryBuilderError>
pub fn add_static_field( &mut self, field: QueryableFields, ) -> Result<&mut Self, QueryBuilderError>
pub async fn multi_event_builder( &mut self, event_name_or_signature: String, filter: fn(Log, DecodedEvent, usize) -> bool, configurator: fn(&mut QueryBuilderForEvent) -> Result<(), QueryBuilderError>, ) -> Result<&mut Self, QueryBuilderError>
pub async fn event_builder( &mut self, event_name_or_signature: String, filter: fn(Log, DecodedEvent, usize) -> bool, take_first_if_multiple: bool, configurator: fn(&mut QueryBuilderForEvent) -> Result<(), QueryBuilderError>, ) -> Result<&mut Self, QueryBuilderError>
pub async fn find_event( &mut self, event_name_or_signature: String, filter: fn(Log, DecodedEvent, usize) -> bool, take_first_if_multiple: bool, ) -> Result<Option<(Log, DecodedEvent, usize, Event)>, QueryBuilderError>
pub async fn find_all_events( &mut self, event_name_or_signature: String, filter: fn(Log, DecodedEvent, usize) -> bool, ) -> Result<Vec<(Log, DecodedEvent, usize, Event)>, QueryBuilderError>
pub async fn get_receipt_abis( &mut self, ) -> Result<HashMap<String, JsonAbi>, QueryBuilderError>
pub async fn get_abis_of_contract_addresses( &mut self, contract_addresses: Vec<String>, ) -> Result<HashMap<String, JsonAbi>, QueryBuilderError>
pub async fn get_abi_from_provider_cached( &mut self, contract_address: String, ) -> Result<JsonAbi, QueryBuilderError>
pub async fn get_abi_from_provider( &self, contract_address: String, ) -> Result<JsonAbi, QueryBuilderError>
pub fn get_selected_offsets(&self) -> Vec<(usize, usize)>
Auto Trait Implementations§
impl !Freeze for QueryBuilder
impl !RefUnwindSafe for QueryBuilder
impl !Send for QueryBuilder
impl !Sync for QueryBuilder
impl Unpin for QueryBuilder
impl !UnwindSafe for QueryBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more