btcpay_client/models/
withdrawal_request_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 WithdrawalRequestData {
16    /// The payment method (cryptocode + network) of the withdrawal.
17    #[serde(rename = "paymentMethod", skip_serializing_if = "Option::is_none")]
18    pub payment_method: Option<String>,
19    /// The qty to withdraw.
20    #[serde(rename = "qty", skip_serializing_if = "Option::is_none")]
21    pub qty: Option<f32>,
22}
23
24impl WithdrawalRequestData {
25    pub fn new() -> WithdrawalRequestData {
26        WithdrawalRequestData {
27            payment_method: None,
28            qty: None,
29        }
30    }
31}
32
33