pub enum Erc20Inputs {
Name(),
Symbol(),
Decimals(),
TotalSupply(),
BalanceOf {
address: Address,
},
Transfer {
address: Address,
value: U256,
},
TransferFrom {
from: Address,
to: Address,
value: U256,
},
Approve {
address: Address,
value: U256,
},
Allowance {
owner: Address,
spender: Address,
},
}Expand description
Erc20Inputs is an enum/union representing the possible ERC20 function inputs.
Variants§
Trait Implementations§
Source§impl Clone for Erc20Inputs
impl Clone for Erc20Inputs
Source§fn clone(&self) -> Erc20Inputs
fn clone(&self) -> Erc20Inputs
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 Erc20Inputs
impl Debug for Erc20Inputs
Source§impl<'de> Deserialize<'de> for Erc20Inputs
impl<'de> Deserialize<'de> for Erc20Inputs
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 Erc20Inputs
impl RefUnwindSafe for Erc20Inputs
impl Send for Erc20Inputs
impl Sync for Erc20Inputs
impl Unpin for Erc20Inputs
impl UnwindSafe for Erc20Inputs
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