pub enum SparkRpcInput {
TransferRpcInput(SparkTransferRpcInput),
GetBalanceRpcInput(SparkGetBalanceRpcInput),
TransferTokensRpcInput(SparkTransferTokensRpcInput),
GetStaticDepositAddressRpcInput(SparkGetStaticDepositAddressRpcInput),
GetClaimStaticDepositQuoteRpcInput(SparkGetClaimStaticDepositQuoteRpcInput),
ClaimStaticDepositRpcInput(SparkClaimStaticDepositRpcInput),
CreateLightningInvoiceRpcInput(SparkCreateLightningInvoiceRpcInput),
PayLightningInvoiceRpcInput(SparkPayLightningInvoiceRpcInput),
SignMessageWithIdentityKeyRpcInput(SparkSignMessageWithIdentityKeyRpcInput),
}Expand description
Request body for Spark wallet RPC operations, discriminated by method.
JSON schema
{
"title": "SparkRpcInput",
"description": "Request body for Spark wallet RPC operations,
discriminated by method.",
"oneOf": [
{
"$ref": "#/components/schemas/SparkTransferRpcInput"
},
{
"$ref": "#/components/schemas/SparkGetBalanceRpcInput"
},
{
"$ref": "#/components/schemas/SparkTransferTokensRpcInput"
},
{
"$ref": "#/components/schemas/SparkGetStaticDepositAddressRpcInput"
},
{
"$ref":
"#/components/schemas/SparkGetClaimStaticDepositQuoteRpcInput"
},
{
"$ref": "#/components/schemas/SparkClaimStaticDepositRpcInput"
},
{
"$ref": "#/components/schemas/SparkCreateLightningInvoiceRpcInput"
},
{
"$ref": "#/components/schemas/SparkPayLightningInvoiceRpcInput"
},
{
"$ref":
"#/components/schemas/SparkSignMessageWithIdentityKeyRpcInput"
}
],
"x-stainless-model": "wallets.spark_rpc_input"
}Variants§
TransferRpcInput(SparkTransferRpcInput)
GetBalanceRpcInput(SparkGetBalanceRpcInput)
TransferTokensRpcInput(SparkTransferTokensRpcInput)
GetStaticDepositAddressRpcInput(SparkGetStaticDepositAddressRpcInput)
GetClaimStaticDepositQuoteRpcInput(SparkGetClaimStaticDepositQuoteRpcInput)
ClaimStaticDepositRpcInput(SparkClaimStaticDepositRpcInput)
CreateLightningInvoiceRpcInput(SparkCreateLightningInvoiceRpcInput)
PayLightningInvoiceRpcInput(SparkPayLightningInvoiceRpcInput)
SignMessageWithIdentityKeyRpcInput(SparkSignMessageWithIdentityKeyRpcInput)
Trait Implementations§
Source§impl Clone for SparkRpcInput
impl Clone for SparkRpcInput
Source§fn clone(&self) -> SparkRpcInput
fn clone(&self) -> SparkRpcInput
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 SparkRpcInput
impl Debug for SparkRpcInput
Source§impl<'de> Deserialize<'de> for SparkRpcInput
impl<'de> Deserialize<'de> for SparkRpcInput
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<&SparkRpcInput> for SparkRpcInput
impl From<&SparkRpcInput> for SparkRpcInput
Source§fn from(value: &SparkRpcInput) -> Self
fn from(value: &SparkRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkClaimStaticDepositRpcInput> for SparkRpcInput
impl From<SparkClaimStaticDepositRpcInput> for SparkRpcInput
Source§fn from(value: SparkClaimStaticDepositRpcInput) -> Self
fn from(value: SparkClaimStaticDepositRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkCreateLightningInvoiceRpcInput> for SparkRpcInput
impl From<SparkCreateLightningInvoiceRpcInput> for SparkRpcInput
Source§fn from(value: SparkCreateLightningInvoiceRpcInput) -> Self
fn from(value: SparkCreateLightningInvoiceRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetBalanceRpcInput> for SparkRpcInput
impl From<SparkGetBalanceRpcInput> for SparkRpcInput
Source§fn from(value: SparkGetBalanceRpcInput) -> Self
fn from(value: SparkGetBalanceRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetClaimStaticDepositQuoteRpcInput> for SparkRpcInput
impl From<SparkGetClaimStaticDepositQuoteRpcInput> for SparkRpcInput
Source§fn from(value: SparkGetClaimStaticDepositQuoteRpcInput) -> Self
fn from(value: SparkGetClaimStaticDepositQuoteRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetStaticDepositAddressRpcInput> for SparkRpcInput
impl From<SparkGetStaticDepositAddressRpcInput> for SparkRpcInput
Source§fn from(value: SparkGetStaticDepositAddressRpcInput) -> Self
fn from(value: SparkGetStaticDepositAddressRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkPayLightningInvoiceRpcInput> for SparkRpcInput
impl From<SparkPayLightningInvoiceRpcInput> for SparkRpcInput
Source§fn from(value: SparkPayLightningInvoiceRpcInput) -> Self
fn from(value: SparkPayLightningInvoiceRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkSignMessageWithIdentityKeyRpcInput> for SparkRpcInput
impl From<SparkSignMessageWithIdentityKeyRpcInput> for SparkRpcInput
Source§fn from(value: SparkSignMessageWithIdentityKeyRpcInput) -> Self
fn from(value: SparkSignMessageWithIdentityKeyRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkTransferRpcInput> for SparkRpcInput
impl From<SparkTransferRpcInput> for SparkRpcInput
Source§fn from(value: SparkTransferRpcInput) -> Self
fn from(value: SparkTransferRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkTransferTokensRpcInput> for SparkRpcInput
impl From<SparkTransferTokensRpcInput> for SparkRpcInput
Source§fn from(value: SparkTransferTokensRpcInput) -> Self
fn from(value: SparkTransferTokensRpcInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkRpcInput
impl RefUnwindSafe for SparkRpcInput
impl Send for SparkRpcInput
impl Sync for SparkRpcInput
impl Unpin for SparkRpcInput
impl UnsafeUnpin for SparkRpcInput
impl UnwindSafe for SparkRpcInput
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