pub enum EthereumRpcResponse {
PersonalSignRpcResponse(EthereumPersonalSignRpcResponse),
SignTypedDataRpcResponse(EthereumSignTypedDataRpcResponse),
SignTransactionRpcResponse(EthereumSignTransactionRpcResponse),
SendTransactionRpcResponse(EthereumSendTransactionRpcResponse),
SignUserOperationRpcResponse(EthereumSignUserOperationRpcResponse),
Sign7702AuthorizationRpcResponse(EthereumSign7702AuthorizationRpcResponse),
Secp256k1SignRpcResponse(EthereumSecp256k1SignRpcResponse),
SendCallsRpcResponse(EthereumSendCallsRpcResponse),
}Expand description
Response body for Ethereum wallet RPC operations, discriminated by method.
JSON schema
{
"title": "EthereumRpcResponse",
"description": "Response body for Ethereum wallet RPC operations,
discriminated by method.",
"oneOf": [
{
"$ref": "#/components/schemas/EthereumPersonalSignRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSignTypedDataRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSignTransactionRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSendTransactionRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSignUserOperationRpcResponse"
},
{
"$ref":
"#/components/schemas/EthereumSign7702AuthorizationRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSecp256k1SignRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSendCallsRpcResponse"
}
],
"x-stainless-model": "wallets.ethereum_rpc_response"
}Variants§
PersonalSignRpcResponse(EthereumPersonalSignRpcResponse)
SignTypedDataRpcResponse(EthereumSignTypedDataRpcResponse)
SignTransactionRpcResponse(EthereumSignTransactionRpcResponse)
SendTransactionRpcResponse(EthereumSendTransactionRpcResponse)
SignUserOperationRpcResponse(EthereumSignUserOperationRpcResponse)
Sign7702AuthorizationRpcResponse(EthereumSign7702AuthorizationRpcResponse)
Secp256k1SignRpcResponse(EthereumSecp256k1SignRpcResponse)
SendCallsRpcResponse(EthereumSendCallsRpcResponse)
Trait Implementations§
Source§impl Clone for EthereumRpcResponse
impl Clone for EthereumRpcResponse
Source§fn clone(&self) -> EthereumRpcResponse
fn clone(&self) -> EthereumRpcResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EthereumRpcResponse
impl Debug for EthereumRpcResponse
Source§impl<'de> Deserialize<'de> for EthereumRpcResponse
impl<'de> Deserialize<'de> for EthereumRpcResponse
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<&EthereumRpcResponse> for EthereumRpcResponse
impl From<&EthereumRpcResponse> for EthereumRpcResponse
Source§fn from(value: &EthereumRpcResponse) -> Self
fn from(value: &EthereumRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumPersonalSignRpcResponse> for EthereumRpcResponse
impl From<EthereumPersonalSignRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumPersonalSignRpcResponse) -> Self
fn from(value: EthereumPersonalSignRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSecp256k1SignRpcResponse> for EthereumRpcResponse
impl From<EthereumSecp256k1SignRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSecp256k1SignRpcResponse) -> Self
fn from(value: EthereumSecp256k1SignRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSendCallsRpcResponse> for EthereumRpcResponse
impl From<EthereumSendCallsRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSendCallsRpcResponse) -> Self
fn from(value: EthereumSendCallsRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSendTransactionRpcResponse> for EthereumRpcResponse
impl From<EthereumSendTransactionRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSendTransactionRpcResponse) -> Self
fn from(value: EthereumSendTransactionRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSign7702AuthorizationRpcResponse> for EthereumRpcResponse
impl From<EthereumSign7702AuthorizationRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSign7702AuthorizationRpcResponse) -> Self
fn from(value: EthereumSign7702AuthorizationRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTransactionRpcResponse> for EthereumRpcResponse
impl From<EthereumSignTransactionRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSignTransactionRpcResponse) -> Self
fn from(value: EthereumSignTransactionRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTypedDataRpcResponse> for EthereumRpcResponse
impl From<EthereumSignTypedDataRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSignTypedDataRpcResponse) -> Self
fn from(value: EthereumSignTypedDataRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignUserOperationRpcResponse> for EthereumRpcResponse
impl From<EthereumSignUserOperationRpcResponse> for EthereumRpcResponse
Source§fn from(value: EthereumSignUserOperationRpcResponse) -> Self
fn from(value: EthereumSignUserOperationRpcResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EthereumRpcResponse
impl RefUnwindSafe for EthereumRpcResponse
impl Send for EthereumRpcResponse
impl Sync for EthereumRpcResponse
impl Unpin for EthereumRpcResponse
impl UnsafeUnpin for EthereumRpcResponse
impl UnwindSafe for EthereumRpcResponse
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