pub struct TypedData {
pub types: HashMap<String, Vec<Eip712TypeField>>,
pub primary_type: String,
pub domain: HashMap<String, TypedValue>,
pub message: HashMap<String, TypedValue>,
}Expand description
A parsed EIP-712 typed data payload (eth_signTypedData_v4 format).
Fields§
§types: HashMap<String, Vec<Eip712TypeField>>All type definitions (struct name → field list)
primary_type: StringThe root type being signed (must exist in types)
domain: HashMap<String, TypedValue>Domain separator values
message: HashMap<String, TypedValue>The structured data to be signed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypedData
impl<'de> Deserialize<'de> for TypedData
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
Auto Trait Implementations§
impl Freeze for TypedData
impl RefUnwindSafe for TypedData
impl Send for TypedData
impl Sync for TypedData
impl Unpin for TypedData
impl UnsafeUnpin for TypedData
impl UnwindSafe for TypedData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more