btcpay_client/models/
application_server_info_node_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/// ApplicationServerInfoNodeStatusData : Detailed sync status of the internal full node
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ApplicationServerInfoNodeStatusData {
17    /// The height of the chain of header of the internal full node
18    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
19    pub headers: Option<i32>,
20    /// The height of the latest validated block of the internal full node
21    #[serde(rename = "blocks", skip_serializing_if = "Option::is_none")]
22    pub blocks: Option<i32>,
23    /// The current synchronization progress
24    #[serde(rename = "verificationProgress", skip_serializing_if = "Option::is_none")]
25    pub verification_progress: Option<f64>,
26}
27
28impl ApplicationServerInfoNodeStatusData {
29    /// Detailed sync status of the internal full node
30    pub fn new() -> ApplicationServerInfoNodeStatusData {
31        ApplicationServerInfoNodeStatusData {
32            headers: None,
33            blocks: None,
34            verification_progress: None,
35        }
36    }
37}
38
39