thehive_client/models/
input_update_user.rs

1/*
2 * TheHive API
3 *
4 * Comprehensive OpenAPI specification inferred from the TheHive4py client library. This API allows interaction with TheHive platform for managing alerts, cases, observables, tasks, users, and other entities. 
5 *
6 * The version of the OpenAPI document: 2.1.0
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 InputUpdateUser {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "organisation", skip_serializing_if = "Option::is_none")]
19    pub organisation: Option<String>,
20    #[serde(rename = "profile", skip_serializing_if = "Option::is_none")]
21    pub profile: Option<String>,
22    #[serde(rename = "locked", skip_serializing_if = "Option::is_none")]
23    pub locked: Option<bool>,
24    #[serde(rename = "avatar", skip_serializing_if = "Option::is_none")]
25    pub avatar: Option<String>,
26    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
27    pub email: Option<String>,
28    #[serde(rename = "defaultOrganisation", skip_serializing_if = "Option::is_none")]
29    pub default_organisation: Option<String>,
30}
31
32impl InputUpdateUser {
33    pub fn new() -> InputUpdateUser {
34        InputUpdateUser {
35            name: None,
36            organisation: None,
37            profile: None,
38            locked: None,
39            avatar: None,
40            email: None,
41            default_organisation: None,
42        }
43    }
44}
45