pub struct EIP712Domain {
pub name: Option<String>,
pub version: Option<String>,
pub chain_id: Option<Uint>,
pub verifying_contract: Option<Address>,
pub salt: Option<[u8; 32]>,
}Expand description
Eip712 Domain attributes used in determining the domain separator; Unused fields are left out of the struct type.
Protocol designers only need to include the fields that make sense for their signing domain. Unused fields are left out of the struct type.
Fields§
§name: Option<String>The user readable name of signing domain, i.e. the name of the DApp or the protocol.
version: Option<String>The current major version of the signing domain. Signatures from different versions are not compatible.
chain_id: Option<Uint>The EIP-155 chain id. The user-agent should refuse signing if it does not match the currently active chain.
verifying_contract: Option<Address>The address of the contract that will verify the signature.
salt: Option<[u8; 32]>A disambiguating salt for the protocol. This can be used as a domain separator of last resort.
Implementations§
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§fn default() -> EIP712Domain
fn default() -> EIP712Domain
Returns the “default value” for a type. Read more
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 PartialEq for EIP712Domain
impl PartialEq for EIP712Domain
Source§impl Serialize for EIP712Domain
impl Serialize for EIP712Domain
impl Eq for EIP712Domain
impl StructuralPartialEq for EIP712Domain
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