btcpay_client/models/
on_chain_payment_method_data_preview.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 OnChainPaymentMethodDataPreview {
16    /// The derivation scheme
17    #[serde(rename = "derivationScheme", skip_serializing_if = "Option::is_none")]
18    pub derivation_scheme: Option<String>,
19    /// A label that will be shown in the UI
20    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
21    pub label: Option<String>,
22    /// The wallet fingerprint followed by the keypath to derive the account key used for signing operation or creating PSBTs
23    #[serde(rename = "accountKeyPath", skip_serializing_if = "Option::is_none")]
24    pub account_key_path: Option<String>,
25    /// Crypto code of the payment method
26    #[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
27    pub crypto_code: Option<String>,
28}
29
30impl OnChainPaymentMethodDataPreview {
31    pub fn new() -> OnChainPaymentMethodDataPreview {
32        OnChainPaymentMethodDataPreview {
33            derivation_scheme: None,
34            label: None,
35            account_key_path: None,
36            crypto_code: None,
37        }
38    }
39}
40
41