Struct ethers_contract::ExcludeContracts
source · pub struct ExcludeContracts { /* private fields */ }
Available on crate feature
abigen
only.Expand description
A Contract Filter that exclude certain contracts
Note:: matching by exact name and via regex stacks
This is the inverse of SelectContracts
Implementations§
source§impl ExcludeContracts
impl ExcludeContracts
sourcepub fn add_name<T>(self, arg: T) -> ExcludeContractswhere
T: Into<String>,
pub fn add_name<T>(self, arg: T) -> ExcludeContractswhere
T: Into<String>,
Adds an exact name to the filter
sourcepub fn extend_names<I, S>(self, name: I) -> ExcludeContractswhere
I: IntoIterator<Item = S>,
S: Into<String>,
pub fn extend_names<I, S>(self, name: I) -> ExcludeContractswhere
I: IntoIterator<Item = S>,
S: Into<String>,
Adds multiple exact names to the filter
sourcepub fn add_regex(self, re: Regex) -> ExcludeContracts
pub fn add_regex(self, re: Regex) -> ExcludeContracts
sourcepub fn extend_regex<I, S>(self, regexes: I) -> ExcludeContractswhere
I: IntoIterator<Item = S>,
S: Into<Regex>,
pub fn extend_regex<I, S>(self, regexes: I) -> ExcludeContractswhere
I: IntoIterator<Item = S>,
S: Into<Regex>,
Adds multiple exact names to the filter
sourcepub fn add_pattern(self, pattern: impl AsRef<str>) -> ExcludeContracts
pub fn add_pattern(self, pattern: impl AsRef<str>) -> ExcludeContracts
sourcepub fn try_add_pattern(
self,
s: impl AsRef<str>
) -> Result<ExcludeContracts, Error>
pub fn try_add_pattern(
self,
s: impl AsRef<str>
) -> Result<ExcludeContracts, Error>
Sets the pattern to use
sourcepub fn extend_pattern<I, S>(self, patterns: I) -> ExcludeContractswhere
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn extend_pattern<I, S>(self, patterns: I) -> ExcludeContractswhere
I: IntoIterator<Item = S>,
S: AsRef<str>,
sourcepub fn try_extend_pattern<I, S>(
self,
patterns: I
) -> Result<ExcludeContracts, Error>where
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn try_extend_pattern<I, S>(
self,
patterns: I
) -> Result<ExcludeContracts, Error>where
I: IntoIterator<Item = S>,
S: AsRef<str>,
Trait Implementations§
source§impl Clone for ExcludeContracts
impl Clone for ExcludeContracts
source§fn clone(&self) -> ExcludeContracts
fn clone(&self) -> ExcludeContracts
Returns a copy 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 ExcludeContracts
impl Debug for ExcludeContracts
source§impl Default for ExcludeContracts
impl Default for ExcludeContracts
source§fn default() -> ExcludeContracts
fn default() -> ExcludeContracts
Returns the “default value” for a type. Read more
source§impl From<ExcludeContracts> for ContractFilter
impl From<ExcludeContracts> for ContractFilter
source§fn from(f: ExcludeContracts) -> ContractFilter
fn from(f: ExcludeContracts) -> ContractFilter
Converts to this type from the input type.