Skip to main content

binance/spot/models/
create_giftcard_buy_code_v1_resp_data.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 CreateGiftcardBuyCodeV1RespData {
16    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
17    pub code: Option<String>,
18    #[serde(rename = "expiredTime", skip_serializing_if = "Option::is_none")]
19    pub expired_time: Option<i64>,
20    #[serde(rename = "referenceNo", skip_serializing_if = "Option::is_none")]
21    pub reference_no: Option<String>,
22}
23
24impl CreateGiftcardBuyCodeV1RespData {
25    pub fn new() -> CreateGiftcardBuyCodeV1RespData {
26        CreateGiftcardBuyCodeV1RespData {
27            code: None,
28            expired_time: None,
29            reference_no: None,
30        }
31    }
32}
33