pub struct Eip712Domain {
pub chain_id: Option<i64>,
pub name: Option<String>,
pub salt: Option<Eip712DomainSalt>,
pub verifying_contract: Option<Eip712DomainVerifyingContract>,
pub version: Option<String>,
}
Expand description
The domain of the EIP-712 typed data.
JSON schema
{
"description": "The domain of the EIP-712 typed data.",
"examples": [
{
"chainId": 1,
"name": "Permit2",
"verifyingContract": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}
],
"type": "object",
"properties": {
"chainId": {
"description": "The chain ID of the EVM network.",
"examples": [
1
],
"type": "integer",
"format": "int64"
},
"name": {
"description": "The name of the DApp or protocol.",
"examples": [
"Permit2"
],
"type": "string"
},
"salt": {
"description": "The optional 32-byte 0x-prefixed hex salt for domain separation.",
"examples": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
],
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
},
"verifyingContract": {
"description": "The 0x-prefixed EVM address of the verifying smart contract.",
"examples": [
"0x000000000022D473030F116dDEE9F6B43aC78BA3"
],
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"version": {
"description": "The version of the DApp or protocol.",
"examples": [
"1"
],
"type": "string"
}
}
}
Fields§
§chain_id: Option<i64>
The chain ID of the EVM network.
name: Option<String>
The name of the DApp or protocol.
salt: Option<Eip712DomainSalt>
The optional 32-byte 0x-prefixed hex salt for domain separation.
verifying_contract: Option<Eip712DomainVerifyingContract>
The 0x-prefixed EVM address of the verifying smart contract.
version: Option<String>
The version of the DApp or protocol.
Implementations§
Source§impl Eip712Domain
impl Eip712Domain
pub fn builder() -> Eip712Domain
Trait Implementations§
Source§impl Clone for Eip712Domain
impl Clone for Eip712Domain
Source§fn clone(&self) -> Eip712Domain
fn clone(&self) -> Eip712Domain
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 Eip712Domain
impl Debug for Eip712Domain
Source§impl Default for Eip712Domain
impl Default for Eip712Domain
Source§impl<'de> Deserialize<'de> for Eip712Domain
impl<'de> Deserialize<'de> for Eip712Domain
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<&Eip712Domain> for Eip712Domain
impl From<&Eip712Domain> for Eip712Domain
Source§fn from(value: &Eip712Domain) -> Self
fn from(value: &Eip712Domain) -> Self
Converts to this type from the input type.
Source§impl From<Eip712Domain> for Eip712Domain
impl From<Eip712Domain> for Eip712Domain
Source§fn from(value: Eip712Domain) -> Self
fn from(value: Eip712Domain) -> Self
Converts to this type from the input type.
Source§impl Serialize for Eip712Domain
impl Serialize for Eip712Domain
Source§impl TryFrom<Eip712Domain> for Eip712Domain
impl TryFrom<Eip712Domain> for Eip712Domain
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: Eip712Domain) -> Result<Self, ConversionError>
fn try_from(value: Eip712Domain) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Eip712Domain
impl RefUnwindSafe for Eip712Domain
impl Send for Eip712Domain
impl Sync for Eip712Domain
impl Unpin for Eip712Domain
impl UnwindSafe for Eip712Domain
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