zsgf_client/models/
app_user_consent_model.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 AppUserConsentModel {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i64>,
18    #[serde(rename = "createDate", skip_serializing_if = "Option::is_none")]
19    pub create_date: Option<String>,
20    #[serde(rename = "lastUpdate", skip_serializing_if = "Option::is_none")]
21    pub last_update: Option<String>,
22    #[serde(rename = "grantType", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub grant_type: Option<Option<String>>,
24    #[serde(rename = "redirectUri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub redirect_uri: Option<Option<String>>,
26    #[serde(rename = "remark", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub remark: Option<Option<String>>,
28    #[serde(rename = "scopes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub scopes: Option<Option<String>>,
30}
31
32impl AppUserConsentModel {
33    pub fn new() -> AppUserConsentModel {
34        AppUserConsentModel {
35            id: None,
36            create_date: None,
37            last_update: None,
38            grant_type: None,
39            redirect_uri: None,
40            remark: None,
41            scopes: None,
42        }
43    }
44}
45