btcpay_client/models/
application_server_info_sync_status_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/// ApplicationServerInfoSyncStatusData : Detailed sync status
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ApplicationServerInfoSyncStatusData {
17    /// The CryptoCode of the crypto currency (eg. BTC)
18    #[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
19    pub crypto_code: Option<String>,
20    #[serde(rename = "nodeInformation", skip_serializing_if = "Option::is_none")]
21    pub node_information: Option<Box<crate::models::ApplicationServerInfoNodeStatusData>>,
22    /// The height of the chain of header of the internal indexer
23    #[serde(rename = "chainHeight", skip_serializing_if = "Option::is_none")]
24    pub chain_height: Option<i32>,
25    /// The height of the latest indexed block of the internal indexer
26    #[serde(rename = "syncHeight", skip_serializing_if = "Option::is_none")]
27    pub sync_height: Option<f32>,
28    /// True if the full node and the indexer are fully synchronized
29    #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
30    pub available: Option<bool>,
31}
32
33impl ApplicationServerInfoSyncStatusData {
34    /// Detailed sync status
35    pub fn new() -> ApplicationServerInfoSyncStatusData {
36        ApplicationServerInfoSyncStatusData {
37            crypto_code: None,
38            node_information: None,
39            chain_height: None,
40            sync_height: None,
41            available: None,
42        }
43    }
44}
45
46