zsgf_client/models/
currency_exchange_rate_api_response.rs

1/*
2 * 全部  API 文档
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CurrencyExchangeRateApiResponse {
16    /// 状态码
17    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
18    pub code: Option<i32>,
19    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
20    pub data: Option<Box<models::CurrencyExchangeRate>>,
21    /// 错误信息
22    #[serde(rename = "error", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub error: Option<Option<String>>,
24}
25
26impl CurrencyExchangeRateApiResponse {
27    pub fn new() -> CurrencyExchangeRateApiResponse {
28        CurrencyExchangeRateApiResponse {
29            code: None,
30            data: None,
31            error: None,
32        }
33    }
34}
35