scaleway_api_rs/models/update_user_request.rs
1/*
2 * Account API
3 *
4 * # Introduction The Account API allows you to manage projects. Project is Scaleway’s resource management feature. Designed to help you organize your infrastructure and cloud services, the feature allows resources to be isolated and grouped into specific projects.
5 *
6 * The version of the OpenAPI document: v2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct UpdateUserRequest {
13 /// Password of the database user
14 #[serde(
15 rename = "password",
16 default,
17 with = "::serde_with::rust::double_option",
18 skip_serializing_if = "Option::is_none"
19 )]
20 pub password: Option<Option<String>>,
21 /// Whether or not this user got administrative privileges
22 #[serde(
23 rename = "is_admin",
24 default,
25 with = "::serde_with::rust::double_option",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub is_admin: Option<Option<bool>>,
29}
30
31impl UpdateUserRequest {
32 pub fn new() -> UpdateUserRequest {
33 UpdateUserRequest {
34 password: None,
35 is_admin: None,
36 }
37 }
38}