Enum ethers_contract::ContractFilter
source · pub enum ContractFilter {
All,
Select(SelectContracts),
Exclude(ExcludeContracts),
}
Available on crate feature
abigen
only.Expand description
Used to filter contracts that should be included in the abigen generation.
Variants§
All
Include all contracts
Select(SelectContracts)
Only include contracts that match the filter
Exclude(ExcludeContracts)
Only include contracts that don’t match the filter
Implementations§
Trait Implementations§
source§impl Clone for ContractFilter
impl Clone for ContractFilter
source§fn clone(&self) -> ContractFilter
fn clone(&self) -> ContractFilter
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 ContractFilter
impl Debug for ContractFilter
source§impl Default for ContractFilter
impl Default for ContractFilter
source§fn default() -> ContractFilter
fn default() -> ContractFilter
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.
source§impl From<SelectContracts> for ContractFilter
impl From<SelectContracts> for ContractFilter
source§fn from(f: SelectContracts) -> ContractFilter
fn from(f: SelectContracts) -> ContractFilter
Converts to this type from the input type.