Struct ethers::types::transaction::eip712::EIP712WithDomain [−][src]
pub struct EIP712WithDomain<T> where
T: Clone + Eip712, {
pub domain: EIP712Domain,
pub inner: T,
}
Fields
domain: EIP712Domain
inner: T
Implementations
Trait Implementations
type Error = Eip712Error
type Error = Eip712Error
User defined error type;
Returns the current domain. The domain depends on the contract and unique domain for which the user is targeting. In the derive macro, these attributes are passed in as arguments to the macro. When manually deriving, the user will need to know the name of the domain, version of the contract, chain ID of where the contract lives and the address of the verifying contract. Read more
This method is used for calculating the hash of the type signature of the struct. The field types of the struct must map to primitive ethereum types or custom types defined in the contract. Read more
Hash of the struct, according to EIP-712 definition of hashStruct
Default implementation of the domain separator;
Auto Trait Implementations
impl<T> RefUnwindSafe for EIP712WithDomain<T> where
T: RefUnwindSafe,
impl<T> Send for EIP712WithDomain<T> where
T: Send,
impl<T> Sync for EIP712WithDomain<T> where
T: Sync,
impl<T> Unpin for EIP712WithDomain<T> where
T: Unpin,
impl<T> UnwindSafe for EIP712WithDomain<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more