btcpay_client/models/
lightning_node_information_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 LightningNodeInformationData {
16    /// Node URIs to connect to this node in the form `pubkey@endpoint[:port]`
17    #[serde(rename = "nodeURIs", skip_serializing_if = "Option::is_none")]
18    pub node_uris: Option<Vec<String>>,
19    /// The block height of the lightning node
20    #[serde(rename = "blockHeight", skip_serializing_if = "Option::is_none")]
21    pub block_height: Option<i32>,
22}
23
24impl LightningNodeInformationData {
25    pub fn new() -> LightningNodeInformationData {
26        LightningNodeInformationData {
27            node_uris: None,
28            block_height: None,
29        }
30    }
31}
32
33