zsgf_client/models/
user_setting_list_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 UserSettingListApiResponse {
16    /// 状态码
17    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
18    pub code: Option<i32>,
19    /// 响应数据
20    #[serde(rename = "data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub data: Option<Option<Vec<models::UserSetting>>>,
22    /// 错误信息
23    #[serde(rename = "error", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub error: Option<Option<String>>,
25}
26
27impl UserSettingListApiResponse {
28    pub fn new() -> UserSettingListApiResponse {
29        UserSettingListApiResponse {
30            code: None,
31            data: None,
32            error: None,
33        }
34    }
35}
36