pub struct EthereumPersonalSignRpcInput {
pub address: Option<String>,
pub chain_type: Option<EthereumPersonalSignRpcInputChainType>,
pub method: EthereumPersonalSignRpcInputMethod,
pub params: EthereumPersonalSignRpcInputParams,
}Expand description
EthereumPersonalSignRpcInput
JSON schema
{
"type": "object",
"required": [
"method",
"params"
],
"properties": {
"address": {
"type": "string"
},
"chain_type": {
"type": "string",
"enum": [
"ethereum"
]
},
"method": {
"type": "string",
"enum": [
"personal_sign"
]
},
"params": {
"type": "object",
"required": [
"encoding",
"message"
],
"properties": {
"encoding": {
"oneOf": [
{
"type": "string",
"enum": [
"utf-8"
]
},
{
"type": "string",
"enum": [
"hex"
]
}
]
},
"message": {
"type": "string"
}
}
}
}
}Fields§
§address: Option<String>§chain_type: Option<EthereumPersonalSignRpcInputChainType>§method: EthereumPersonalSignRpcInputMethod§params: EthereumPersonalSignRpcInputParamsTrait Implementations§
Source§impl Clone for EthereumPersonalSignRpcInput
impl Clone for EthereumPersonalSignRpcInput
Source§fn clone(&self) -> EthereumPersonalSignRpcInput
fn clone(&self) -> EthereumPersonalSignRpcInput
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 EthereumPersonalSignRpcInput
impl Debug for EthereumPersonalSignRpcInput
Source§impl<'de> Deserialize<'de> for EthereumPersonalSignRpcInput
impl<'de> Deserialize<'de> for EthereumPersonalSignRpcInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumPersonalSignRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumPersonalSignRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EthereumPersonalSignRpcInput> for EthereumPersonalSignRpcInput
impl From<&EthereumPersonalSignRpcInput> for EthereumPersonalSignRpcInput
Source§fn from(value: &EthereumPersonalSignRpcInput) -> EthereumPersonalSignRpcInput
fn from(value: &EthereumPersonalSignRpcInput) -> EthereumPersonalSignRpcInput
Converts to this type from the input type.
Source§impl From<EthereumPersonalSignRpcInput> for WalletRpcBody
impl From<EthereumPersonalSignRpcInput> for WalletRpcBody
Source§fn from(value: EthereumPersonalSignRpcInput) -> WalletRpcBody
fn from(value: EthereumPersonalSignRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl Serialize for EthereumPersonalSignRpcInput
impl Serialize for EthereumPersonalSignRpcInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EthereumPersonalSignRpcInput
impl RefUnwindSafe for EthereumPersonalSignRpcInput
impl Send for EthereumPersonalSignRpcInput
impl Sync for EthereumPersonalSignRpcInput
impl Unpin for EthereumPersonalSignRpcInput
impl UnwindSafe for EthereumPersonalSignRpcInput
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