btcpay_client/models/
generic_payment_method_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 GenericPaymentMethodData {
16    /// Whether the payment method is enabled
17    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
18    pub enabled: Option<bool>,
19    /// The currency code of the payment method
20    #[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
21    pub crypto_code: Option<String>,
22    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
23    pub data: Option<Box<crate::models::GenericPaymentMethodDataData>>,
24}
25
26impl GenericPaymentMethodData {
27    pub fn new() -> GenericPaymentMethodData {
28        GenericPaymentMethodData {
29            enabled: None,
30            crypto_code: None,
31            data: None,
32        }
33    }
34}
35
36