pub struct EthereumSecp256k1SignRpcInput {
pub address: Option<String>,
pub chain_type: Option<EthereumSecp256k1SignRpcInputChainType>,
pub method: EthereumSecp256k1SignRpcInputMethod,
pub params: EthereumSecp256k1SignRpcInputParams,
}Expand description
EthereumSecp256k1SignRpcInput
JSON schema
{
"type": "object",
"required": [
"method",
"params"
],
"properties": {
"address": {
"type": "string"
},
"chain_type": {
"type": "string",
"enum": [
"ethereum"
]
},
"method": {
"type": "string",
"enum": [
"secp256k1_sign"
]
},
"params": {
"type": "object",
"required": [
"hash"
],
"properties": {
"hash": {
"type": "string"
}
}
}
}
}Fields§
§address: Option<String>§chain_type: Option<EthereumSecp256k1SignRpcInputChainType>§method: EthereumSecp256k1SignRpcInputMethod§params: EthereumSecp256k1SignRpcInputParamsTrait Implementations§
Source§impl Clone for EthereumSecp256k1SignRpcInput
impl Clone for EthereumSecp256k1SignRpcInput
Source§fn clone(&self) -> EthereumSecp256k1SignRpcInput
fn clone(&self) -> EthereumSecp256k1SignRpcInput
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 EthereumSecp256k1SignRpcInput
impl<'de> Deserialize<'de> for EthereumSecp256k1SignRpcInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumSecp256k1SignRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumSecp256k1SignRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EthereumSecp256k1SignRpcInput> for EthereumSecp256k1SignRpcInput
impl From<&EthereumSecp256k1SignRpcInput> for EthereumSecp256k1SignRpcInput
Source§fn from(value: &EthereumSecp256k1SignRpcInput) -> EthereumSecp256k1SignRpcInput
fn from(value: &EthereumSecp256k1SignRpcInput) -> EthereumSecp256k1SignRpcInput
Converts to this type from the input type.
Source§impl From<EthereumSecp256k1SignRpcInput> for WalletRpcBody
impl From<EthereumSecp256k1SignRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSecp256k1SignRpcInput) -> WalletRpcBody
fn from(value: EthereumSecp256k1SignRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl Serialize for EthereumSecp256k1SignRpcInput
impl Serialize for EthereumSecp256k1SignRpcInput
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 EthereumSecp256k1SignRpcInput
impl RefUnwindSafe for EthereumSecp256k1SignRpcInput
impl Send for EthereumSecp256k1SignRpcInput
impl Sync for EthereumSecp256k1SignRpcInput
impl Unpin for EthereumSecp256k1SignRpcInput
impl UnwindSafe for EthereumSecp256k1SignRpcInput
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