pub enum ApprovalStandard {
Erc20,
Erc1155,
Unknown,
}Expand description
Token standard of a tracked approval.
Variants§
Erc20
Carries an allowance amount.
Erc1155
An operator flag with no amount.
Unknown
A standard this client does not recognize (forward-compat).
Trait Implementations§
Source§impl Clone for ApprovalStandard
impl Clone for ApprovalStandard
Source§fn clone(&self) -> ApprovalStandard
fn clone(&self) -> ApprovalStandard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ApprovalStandard
Source§impl Debug for ApprovalStandard
impl Debug for ApprovalStandard
Source§impl<'de> Deserialize<'de> for ApprovalStandard
impl<'de> Deserialize<'de> for ApprovalStandard
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
impl Eq for ApprovalStandard
Source§impl PartialEq for ApprovalStandard
impl PartialEq for ApprovalStandard
Source§impl Serialize for ApprovalStandard
impl Serialize for ApprovalStandard
impl StructuralPartialEq for ApprovalStandard
Auto Trait Implementations§
impl Freeze for ApprovalStandard
impl RefUnwindSafe for ApprovalStandard
impl Send for ApprovalStandard
impl Sync for ApprovalStandard
impl Unpin for ApprovalStandard
impl UnsafeUnpin for ApprovalStandard
impl UnwindSafe for ApprovalStandard
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