binance/spot/models/
create_giftcard_create_code_v1_resp.rs

1/*
2 * Binance Spot API
3 *
4 * OpenAPI specification for Binance exchange - Spot API
5 *
6 * The version of the OpenAPI document: 0.3.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::spot::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateGiftcardCreateCodeV1Resp {
16    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
17    pub code: Option<String>,
18    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
19    pub data: Option<Box<models::CreateGiftcardBuyCodeV1RespData>>,
20    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
21    pub message: Option<String>,
22    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
23    pub success: Option<bool>,
24}
25
26impl CreateGiftcardCreateCodeV1Resp {
27    pub fn new() -> CreateGiftcardCreateCodeV1Resp {
28        CreateGiftcardCreateCodeV1Resp {
29            code: None,
30            data: None,
31            message: None,
32            success: None,
33        }
34    }
35}
36