pub struct SparkCreateLightningInvoiceRpcInput {
pub method: SparkCreateLightningInvoiceRpcInputMethod,
pub network: Option<SparkNetwork>,
pub params: SparkCreateLightningInvoiceRpcInputParams,
}Expand description
Creates a Lightning invoice for the Spark wallet.
JSON schema
{
"title": "SparkCreateLightningInvoiceRpcInput",
"description": "Creates a Lightning invoice for the Spark wallet.",
"type": "object",
"required": [
"method",
"params"
],
"properties": {
"method": {
"type": "string",
"enum": [
"createLightningInvoice"
]
},
"network": {
"allOf": [
{
"$ref": "#/components/schemas/SparkNetwork"
},
{
"default": "MAINNET"
}
]
},
"params": {
"$ref":
"#/components/schemas/SparkCreateLightningInvoiceRpcInputParams"
}
},
"x-stainless-model": "wallets.spark_create_lightning_invoice_rpc_input"
}Fields§
§method: SparkCreateLightningInvoiceRpcInputMethod§network: Option<SparkNetwork>§params: SparkCreateLightningInvoiceRpcInputParamsTrait Implementations§
Source§impl Clone for SparkCreateLightningInvoiceRpcInput
impl Clone for SparkCreateLightningInvoiceRpcInput
Source§fn clone(&self) -> SparkCreateLightningInvoiceRpcInput
fn clone(&self) -> SparkCreateLightningInvoiceRpcInput
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<'de> Deserialize<'de> for SparkCreateLightningInvoiceRpcInput
impl<'de> Deserialize<'de> for SparkCreateLightningInvoiceRpcInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SparkCreateLightningInvoiceRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SparkCreateLightningInvoiceRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SparkCreateLightningInvoiceRpcInput> for SparkCreateLightningInvoiceRpcInput
impl From<&SparkCreateLightningInvoiceRpcInput> for SparkCreateLightningInvoiceRpcInput
Source§fn from(
value: &SparkCreateLightningInvoiceRpcInput,
) -> SparkCreateLightningInvoiceRpcInput
fn from( value: &SparkCreateLightningInvoiceRpcInput, ) -> SparkCreateLightningInvoiceRpcInput
Converts to this type from the input type.
Source§impl From<SparkCreateLightningInvoiceRpcInput> for SparkRpcInput
impl From<SparkCreateLightningInvoiceRpcInput> for SparkRpcInput
Source§fn from(value: SparkCreateLightningInvoiceRpcInput) -> SparkRpcInput
fn from(value: SparkCreateLightningInvoiceRpcInput) -> SparkRpcInput
Converts to this type from the input type.
Source§impl From<SparkCreateLightningInvoiceRpcInput> for WalletRpcRequestBody
impl From<SparkCreateLightningInvoiceRpcInput> for WalletRpcRequestBody
Source§fn from(value: SparkCreateLightningInvoiceRpcInput) -> WalletRpcRequestBody
fn from(value: SparkCreateLightningInvoiceRpcInput) -> WalletRpcRequestBody
Converts to this type from the input type.
Source§impl Serialize for SparkCreateLightningInvoiceRpcInput
impl Serialize for SparkCreateLightningInvoiceRpcInput
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 SparkCreateLightningInvoiceRpcInput
impl RefUnwindSafe for SparkCreateLightningInvoiceRpcInput
impl Send for SparkCreateLightningInvoiceRpcInput
impl Sync for SparkCreateLightningInvoiceRpcInput
impl Unpin for SparkCreateLightningInvoiceRpcInput
impl UnsafeUnpin for SparkCreateLightningInvoiceRpcInput
impl UnwindSafe for SparkCreateLightningInvoiceRpcInput
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