pub struct TestFilterParams {
pub network: String,
pub dataset: StreamDataset,
pub block: String,
pub filter_function: Option<String>,
pub filter_language: Option<FilterLanguage>,
pub address_book_config: Option<AddressBookConfig>,
}Expand description
Parameters for test_filter.
Fields§
§network: StringBlockchain network to run the test against (e.g. ethereum-mainnet).
dataset: StreamDatasetDataset the filter operates on.
block: StringSpecific block number to feed into the filter for the test.
filter_function: Option<String>Base64-encoded filter function to evaluate.
filter_language: Option<FilterLanguage>Language the filter function is written in.
address_book_config: Option<AddressBookConfig>Address book linked to the filter, if any.
Trait Implementations§
Source§impl Clone for TestFilterParams
impl Clone for TestFilterParams
Source§fn clone(&self) -> TestFilterParams
fn clone(&self) -> TestFilterParams
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 Debug for TestFilterParams
impl Debug for TestFilterParams
Source§impl<'de> Deserialize<'de> for TestFilterParams
impl<'de> Deserialize<'de> for TestFilterParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestFilterParams
impl RefUnwindSafe for TestFilterParams
impl Send for TestFilterParams
impl Sync for TestFilterParams
impl Unpin for TestFilterParams
impl UnsafeUnpin for TestFilterParams
impl UnwindSafe for TestFilterParams
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