Skip to main content

btcpay_client/models/
lightning_network_payment_method_base_data.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct LightningNetworkPaymentMethodBaseData {
16    /// The lightning connection string. Set to 'Internal Node' to use the internal node. (See [this doc](https://github.com/btcpayserver/BTCPayServer.Lightning/blob/master/README.md#examples) for some example)
17    #[serde(rename = "connectionString", skip_serializing_if = "Option::is_none")]
18    pub connection_string: Option<String>,
19    /// Whether to disable generation of bolt11 invoices. Useful when wanting to only use LNURL Pay exclusively.
20    #[serde(rename = "disableBOLT11PaymentOption", skip_serializing_if = "Option::is_none")]
21    pub disable_bolt11_payment_option: Option<bool>,
22}
23
24impl LightningNetworkPaymentMethodBaseData {
25    pub fn new() -> LightningNetworkPaymentMethodBaseData {
26        LightningNetworkPaymentMethodBaseData {
27            connection_string: None,
28            disable_bolt11_payment_option: None,
29        }
30    }
31}
32
33