pub enum TypeRef {
BytesN(usize),
UintN(usize),
IntN(usize),
Bool,
Address,
Bytes,
String,
Array(Box<TypeRef>),
ArrayN(Box<TypeRef>, usize),
Struct(StructName),
}Expand description
EIP-712 types
Variants§
BytesN(usize)
UintN(usize)
IntN(usize)
Bool
Address
Bytes
String
Array(Box<TypeRef>)
ArrayN(Box<TypeRef>, usize)
Struct(StructName)
Implementations§
Source§impl TypeRef
impl TypeRef
Sourcepub fn as_struct_name(&self) -> Option<&StructName>
pub fn as_struct_name(&self) -> Option<&StructName>
Return name of struct if this type is a reference to a struct or array of structs
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeRef
impl<'de> Deserialize<'de> for TypeRef
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 Ord for TypeRef
impl Ord for TypeRef
Source§impl PartialOrd for TypeRef
impl PartialOrd for TypeRef
impl Eq for TypeRef
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl Freeze for TypeRef
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnwindSafe for TypeRef
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
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§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.