Skip to main content

gitbundle_sdk/models/
user_patch_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserPatchInput {
17    #[serde(
18        rename = "display_name",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub display_name: Option<Option<String>>,
24    #[serde(
25        rename = "email",
26        default,
27        with = "::serde_with::rust::double_option",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub email: Option<Option<String>>,
31    #[serde(
32        rename = "is_active",
33        default,
34        with = "::serde_with::rust::double_option",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub is_active: Option<Option<bool>>,
38    #[serde(
39        rename = "is_blocked",
40        default,
41        with = "::serde_with::rust::double_option",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub is_blocked: Option<Option<bool>>,
45    #[serde(
46        rename = "password",
47        default,
48        with = "::serde_with::rust::double_option",
49        skip_serializing_if = "Option::is_none"
50    )]
51    pub password: Option<Option<String>>,
52}
53
54impl UserPatchInput {
55    pub fn new() -> UserPatchInput {
56        UserPatchInput {
57            display_name: None,
58            email: None,
59            is_active: None,
60            is_blocked: None,
61            password: None,
62        }
63    }
64}