pub enum SparkRpcResponse {
TransferRpcResponse(SparkTransferRpcResponse),
GetBalanceRpcResponse(SparkGetBalanceRpcResponse),
TransferTokensRpcResponse(SparkTransferTokensRpcResponse),
GetStaticDepositAddressRpcResponse(SparkGetStaticDepositAddressRpcResponse),
GetClaimStaticDepositQuoteRpcResponse(SparkGetClaimStaticDepositQuoteRpcResponse),
ClaimStaticDepositRpcResponse(SparkClaimStaticDepositRpcResponse),
CreateLightningInvoiceRpcResponse(SparkCreateLightningInvoiceRpcResponse),
PayLightningInvoiceRpcResponse(SparkPayLightningInvoiceRpcResponse),
SignMessageWithIdentityKeyRpcResponse(SparkSignMessageWithIdentityKeyRpcResponse),
}Expand description
Response body for Spark wallet RPC operations, discriminated by method.
JSON schema
{
"title": "SparkRpcResponse",
"description": "Response body for Spark wallet RPC operations,
discriminated by method.",
"oneOf": [
{
"$ref": "#/components/schemas/SparkTransferRpcResponse"
},
{
"$ref": "#/components/schemas/SparkGetBalanceRpcResponse"
},
{
"$ref": "#/components/schemas/SparkTransferTokensRpcResponse"
},
{
"$ref":
"#/components/schemas/SparkGetStaticDepositAddressRpcResponse"
},
{
"$ref":
"#/components/schemas/SparkGetClaimStaticDepositQuoteRpcResponse"
},
{
"$ref": "#/components/schemas/SparkClaimStaticDepositRpcResponse"
},
{
"$ref":
"#/components/schemas/SparkCreateLightningInvoiceRpcResponse"
},
{
"$ref": "#/components/schemas/SparkPayLightningInvoiceRpcResponse"
},
{
"$ref":
"#/components/schemas/SparkSignMessageWithIdentityKeyRpcResponse"
}
],
"x-stainless-model": "wallets.spark_rpc_response"
}Variants§
TransferRpcResponse(SparkTransferRpcResponse)
GetBalanceRpcResponse(SparkGetBalanceRpcResponse)
TransferTokensRpcResponse(SparkTransferTokensRpcResponse)
GetStaticDepositAddressRpcResponse(SparkGetStaticDepositAddressRpcResponse)
GetClaimStaticDepositQuoteRpcResponse(SparkGetClaimStaticDepositQuoteRpcResponse)
ClaimStaticDepositRpcResponse(SparkClaimStaticDepositRpcResponse)
CreateLightningInvoiceRpcResponse(SparkCreateLightningInvoiceRpcResponse)
PayLightningInvoiceRpcResponse(SparkPayLightningInvoiceRpcResponse)
SignMessageWithIdentityKeyRpcResponse(SparkSignMessageWithIdentityKeyRpcResponse)
Trait Implementations§
Source§impl Clone for SparkRpcResponse
impl Clone for SparkRpcResponse
Source§fn clone(&self) -> SparkRpcResponse
fn clone(&self) -> SparkRpcResponse
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 SparkRpcResponse
impl Debug for SparkRpcResponse
Source§impl<'de> Deserialize<'de> for SparkRpcResponse
impl<'de> Deserialize<'de> for SparkRpcResponse
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<&SparkRpcResponse> for SparkRpcResponse
impl From<&SparkRpcResponse> for SparkRpcResponse
Source§fn from(value: &SparkRpcResponse) -> Self
fn from(value: &SparkRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkClaimStaticDepositRpcResponse> for SparkRpcResponse
impl From<SparkClaimStaticDepositRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkClaimStaticDepositRpcResponse) -> Self
fn from(value: SparkClaimStaticDepositRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkCreateLightningInvoiceRpcResponse> for SparkRpcResponse
impl From<SparkCreateLightningInvoiceRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkCreateLightningInvoiceRpcResponse) -> Self
fn from(value: SparkCreateLightningInvoiceRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetBalanceRpcResponse> for SparkRpcResponse
impl From<SparkGetBalanceRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkGetBalanceRpcResponse) -> Self
fn from(value: SparkGetBalanceRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetClaimStaticDepositQuoteRpcResponse> for SparkRpcResponse
impl From<SparkGetClaimStaticDepositQuoteRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkGetClaimStaticDepositQuoteRpcResponse) -> Self
fn from(value: SparkGetClaimStaticDepositQuoteRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetStaticDepositAddressRpcResponse> for SparkRpcResponse
impl From<SparkGetStaticDepositAddressRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkGetStaticDepositAddressRpcResponse) -> Self
fn from(value: SparkGetStaticDepositAddressRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkPayLightningInvoiceRpcResponse> for SparkRpcResponse
impl From<SparkPayLightningInvoiceRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkPayLightningInvoiceRpcResponse) -> Self
fn from(value: SparkPayLightningInvoiceRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkSignMessageWithIdentityKeyRpcResponse> for SparkRpcResponse
impl From<SparkSignMessageWithIdentityKeyRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkSignMessageWithIdentityKeyRpcResponse) -> Self
fn from(value: SparkSignMessageWithIdentityKeyRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkTransferRpcResponse> for SparkRpcResponse
impl From<SparkTransferRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkTransferRpcResponse) -> Self
fn from(value: SparkTransferRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SparkTransferTokensRpcResponse> for SparkRpcResponse
impl From<SparkTransferTokensRpcResponse> for SparkRpcResponse
Source§fn from(value: SparkTransferTokensRpcResponse) -> Self
fn from(value: SparkTransferTokensRpcResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkRpcResponse
impl RefUnwindSafe for SparkRpcResponse
impl Send for SparkRpcResponse
impl Sync for SparkRpcResponse
impl Unpin for SparkRpcResponse
impl UnsafeUnpin for SparkRpcResponse
impl UnwindSafe for SparkRpcResponse
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