pub enum KnownAbiType {
Erc20,
Erc721,
Erc1155,
}
Expand description
A reference to an established EIP standard. When referencing a KnownAbiType
within a policy rule configuring an EvmDataCriterion
, criteria will only decode function data officially documented in the standard. For more information on supported token standards, see the links below.
- erc20 - Token Standard.
- erc721 - Non-Fungible Token Standard.
- erc1155 - Multi Token Standard.
JSON schema
{
"title": "KnownAbiType",
"description": "A reference to an established EIP standard. When referencing a `KnownAbiType` within a policy rule configuring an `EvmDataCriterion`, criteria will only decode function data officially documented in the standard. For more information on supported token standards, see the links below.\n - [erc20 - Token Standard](https://eips.ethereum.org/EIPS/eip-20).\n - [erc721 - Non-Fungible Token Standard](https://eips.ethereum.org/EIPS/eip-721).\n - [erc1155 - Multi Token Standard](https://eips.ethereum.org/EIPS/eip-1155).",
"type": "string",
"enum": [
"erc20",
"erc721",
"erc1155"
]
}
Variants§
Trait Implementations§
Source§impl Clone for KnownAbiType
impl Clone for KnownAbiType
Source§fn clone(&self) -> KnownAbiType
fn clone(&self) -> KnownAbiType
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 KnownAbiType
impl Debug for KnownAbiType
Source§impl<'de> Deserialize<'de> for KnownAbiType
impl<'de> Deserialize<'de> for KnownAbiType
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
Source§impl Display for KnownAbiType
impl Display for KnownAbiType
Source§impl From<&KnownAbiType> for KnownAbiType
impl From<&KnownAbiType> for KnownAbiType
Source§fn from(value: &KnownAbiType) -> Self
fn from(value: &KnownAbiType) -> Self
Converts to this type from the input type.
Source§impl From<KnownAbiType> for EvmDataCriterionAbi
impl From<KnownAbiType> for EvmDataCriterionAbi
Source§fn from(value: KnownAbiType) -> Self
fn from(value: KnownAbiType) -> Self
Converts to this type from the input type.
Source§impl FromStr for KnownAbiType
impl FromStr for KnownAbiType
Source§impl Hash for KnownAbiType
impl Hash for KnownAbiType
Source§impl Ord for KnownAbiType
impl Ord for KnownAbiType
Source§fn cmp(&self, other: &KnownAbiType) -> Ordering
fn cmp(&self, other: &KnownAbiType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KnownAbiType
impl PartialEq for KnownAbiType
Source§impl PartialOrd for KnownAbiType
impl PartialOrd for KnownAbiType
Source§impl Serialize for KnownAbiType
impl Serialize for KnownAbiType
Source§impl TryFrom<&String> for KnownAbiType
impl TryFrom<&String> for KnownAbiType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for KnownAbiType
impl TryFrom<&str> for KnownAbiType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for KnownAbiType
impl TryFrom<String> for KnownAbiType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for KnownAbiType
impl Eq for KnownAbiType
impl StructuralPartialEq for KnownAbiType
Auto Trait Implementations§
impl Freeze for KnownAbiType
impl RefUnwindSafe for KnownAbiType
impl Send for KnownAbiType
impl Sync for KnownAbiType
impl Unpin for KnownAbiType
impl UnwindSafe for KnownAbiType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.