pub struct EthereumSignTypedDataRpcInput {
pub address: Option<String>,
pub chain_type: Option<EthereumSignTypedDataRpcInputChainType>,
pub method: EthereumSignTypedDataRpcInputMethod,
pub params: EthereumSignTypedDataRpcInputParams,
}Expand description
EthereumSignTypedDataRpcInput
JSON schema
{
"type": "object",
"required": [
"method",
"params"
],
"properties": {
"address": {
"type": "string"
},
"chain_type": {
"type": "string",
"enum": [
"ethereum"
]
},
"method": {
"type": "string",
"enum": [
"eth_signTypedData_v4"
]
},
"params": {
"type": "object",
"required": [
"typed_data"
],
"properties": {
"typed_data": {
"type": "object",
"required": [
"domain",
"message",
"primary_type",
"types"
],
"properties": {
"domain": {
"type": "object",
"additionalProperties": {}
},
"message": {
"type": "object",
"additionalProperties": {}
},
"primary_type": {
"type": "string"
},
"types": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}Fields§
§address: Option<String>§chain_type: Option<EthereumSignTypedDataRpcInputChainType>§method: EthereumSignTypedDataRpcInputMethod§params: EthereumSignTypedDataRpcInputParamsTrait Implementations§
Source§impl Clone for EthereumSignTypedDataRpcInput
impl Clone for EthereumSignTypedDataRpcInput
Source§fn clone(&self) -> EthereumSignTypedDataRpcInput
fn clone(&self) -> EthereumSignTypedDataRpcInput
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<'de> Deserialize<'de> for EthereumSignTypedDataRpcInput
impl<'de> Deserialize<'de> for EthereumSignTypedDataRpcInput
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<&EthereumSignTypedDataRpcInput> for EthereumSignTypedDataRpcInput
impl From<&EthereumSignTypedDataRpcInput> for EthereumSignTypedDataRpcInput
Source§fn from(value: &EthereumSignTypedDataRpcInput) -> Self
fn from(value: &EthereumSignTypedDataRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTypedDataRpcInput> for WalletRpcBody
impl From<EthereumSignTypedDataRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSignTypedDataRpcInput) -> Self
fn from(value: EthereumSignTypedDataRpcInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumSignTypedDataRpcInput
impl RefUnwindSafe for EthereumSignTypedDataRpcInput
impl Send for EthereumSignTypedDataRpcInput
impl Sync for EthereumSignTypedDataRpcInput
impl Unpin for EthereumSignTypedDataRpcInput
impl UnwindSafe for EthereumSignTypedDataRpcInput
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