pub struct Eip712Types(pub Map<String, Value>);
Expand description
A mapping of struct names to an array of type objects (name + type).
Each key corresponds to a type name (e.g., “EIP712Domain
”, “PermitTransferFrom
”).
JSON schema
{
"description": "A mapping of struct names to an array of type objects (name + type).\nEach key corresponds to a type name (e.g., \"`EIP712Domain`\", \"`PermitTransferFrom`\").\n",
"examples": [
{
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "address"
}
],
"PermitTransferFrom": [
{
"name": "permitted",
"type": "TokenPermissions"
},
{
"name": "spender",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
],
"TokenPermissions": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
]
}
],
"type": "object"
}
Tuple Fields§
§0: Map<String, Value>
Methods from Deref<Target = Map<String, Value>>§
Sourcepub fn get<Q>(&self, key: &Q) -> Option<&Value>
pub fn get<Q>(&self, key: &Q) -> Option<&Value>
Returns a reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Trait Implementations§
Source§impl Clone for Eip712Types
impl Clone for Eip712Types
Source§fn clone(&self) -> Eip712Types
fn clone(&self) -> Eip712Types
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 Eip712Types
impl Debug for Eip712Types
Source§impl Deref for Eip712Types
impl Deref for Eip712Types
Source§impl<'de> Deserialize<'de> for Eip712Types
impl<'de> Deserialize<'de> for Eip712Types
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 From<&Eip712Types> for Eip712Types
impl From<&Eip712Types> for Eip712Types
Source§fn from(value: &Eip712Types) -> Self
fn from(value: &Eip712Types) -> Self
Converts to this type from the input type.
Source§impl From<Eip712Types> for Map<String, Value>
impl From<Eip712Types> for Map<String, Value>
Source§fn from(value: Eip712Types) -> Self
fn from(value: Eip712Types) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Eip712Types
impl RefUnwindSafe for Eip712Types
impl Send for Eip712Types
impl Sync for Eip712Types
impl Unpin for Eip712Types
impl UnwindSafe for Eip712Types
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