btcpay_client/models/
offchain_balance_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 OffchainBalanceData {
16    /// The amount of current channel openings in millisatoshi
17    #[serde(rename = "opening", skip_serializing_if = "Option::is_none")]
18    pub opening: Option<String>,
19    /// The amount that is available on the local end of active channels in millisatoshi
20    #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
21    pub local: Option<String>,
22    /// The amount that is available on the remote end of active channels in millisatoshi
23    #[serde(rename = "remote", skip_serializing_if = "Option::is_none")]
24    pub remote: Option<String>,
25    /// The amount of current channel closings in millisatoshi
26    #[serde(rename = "closing", skip_serializing_if = "Option::is_none")]
27    pub closing: Option<String>,
28}
29
30impl OffchainBalanceData {
31    pub fn new() -> OffchainBalanceData {
32        OffchainBalanceData {
33            opening: None,
34            local: None,
35            remote: None,
36            closing: None,
37        }
38    }
39}
40
41