pub struct SparkCreateLightningInvoiceRpcInputParams {
pub amount_sats: f64,
pub description_hash: Option<String>,
pub expiry_seconds: Option<f64>,
pub include_spark_address: Option<bool>,
pub memo: Option<String>,
pub receiver_identity_pubkey: Option<String>,
}Expand description
Parameters for the Spark createLightningInvoice RPC.
JSON schema
{
"title": "SparkCreateLightningInvoiceRpcInputParams",
"description": "Parameters for the Spark `createLightningInvoice`
RPC.",
"type": "object",
"required": [
"amount_sats"
],
"properties": {
"amount_sats": {
"type": "number"
},
"description_hash": {
"type": "string"
},
"expiry_seconds": {
"type": "number"
},
"include_spark_address": {
"type": "boolean"
},
"memo": {
"type": "string"
},
"receiver_identity_pubkey": {
"type": "string"
}
},
"x-stainless-model":
"wallets.spark_create_lightning_invoice_rpc_input_params"
}Fields§
§amount_sats: f64§description_hash: Option<String>§expiry_seconds: Option<f64>§include_spark_address: Option<bool>§memo: Option<String>§receiver_identity_pubkey: Option<String>Trait Implementations§
Source§impl Clone for SparkCreateLightningInvoiceRpcInputParams
impl Clone for SparkCreateLightningInvoiceRpcInputParams
Source§fn clone(&self) -> SparkCreateLightningInvoiceRpcInputParams
fn clone(&self) -> SparkCreateLightningInvoiceRpcInputParams
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 SparkCreateLightningInvoiceRpcInputParams
impl<'de> Deserialize<'de> for SparkCreateLightningInvoiceRpcInputParams
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<&SparkCreateLightningInvoiceRpcInputParams> for SparkCreateLightningInvoiceRpcInputParams
impl From<&SparkCreateLightningInvoiceRpcInputParams> for SparkCreateLightningInvoiceRpcInputParams
Source§fn from(value: &SparkCreateLightningInvoiceRpcInputParams) -> Self
fn from(value: &SparkCreateLightningInvoiceRpcInputParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkCreateLightningInvoiceRpcInputParams
impl RefUnwindSafe for SparkCreateLightningInvoiceRpcInputParams
impl Send for SparkCreateLightningInvoiceRpcInputParams
impl Sync for SparkCreateLightningInvoiceRpcInputParams
impl Unpin for SparkCreateLightningInvoiceRpcInputParams
impl UnsafeUnpin for SparkCreateLightningInvoiceRpcInputParams
impl UnwindSafe for SparkCreateLightningInvoiceRpcInputParams
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