btcpay_client/models/
application_server_info_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 ApplicationServerInfoData {
16    /// BTCPay Server version
17    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
18    pub version: Option<String>,
19    /// The Tor hostname
20    #[serde(rename = "onion", skip_serializing_if = "Option::is_none")]
21    pub onion: Option<String>,
22    /// The payment methods this server supports
23    #[serde(rename = "supportedPaymentMethods", skip_serializing_if = "Option::is_none")]
24    pub supported_payment_methods: Option<Vec<String>>,
25    /// True if the instance is fully synchronized, according to NBXplorer
26    #[serde(rename = "fullySynched", skip_serializing_if = "Option::is_none")]
27    pub fully_synched: Option<bool>,
28    #[serde(rename = "syncStatus", skip_serializing_if = "Option::is_none")]
29    pub sync_status: Option<Vec<crate::models::ApplicationServerInfoSyncStatusData>>,
30}
31
32impl ApplicationServerInfoData {
33    pub fn new() -> ApplicationServerInfoData {
34        ApplicationServerInfoData {
35            version: None,
36            onion: None,
37            supported_payment_methods: None,
38            fully_synched: None,
39            sync_status: None,
40        }
41    }
42}
43
44