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.
Auto Trait Implementations§
impl RefUnwindSafe for ContractFilter
impl Send for ContractFilter
impl Sync for ContractFilter
impl Unpin for ContractFilter
impl UnwindSafe for ContractFilter
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