zsgf_client/models/
currency_exchange_rate_api_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CurrencyExchangeRateApiResponse {
16 #[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 #[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