fastly_api/models/
user_response.rs

1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) 
5 *
6 */
7
8
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct UserResponse {
13    #[serde(rename = "login", skip_serializing_if = "Option::is_none")]
14    pub login: Option<Box<String>>,
15    /// The real life name of the user.
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    /// Indicates that the user has limited access to the customer's services.
19    #[serde(rename = "limit_services", skip_serializing_if = "Option::is_none")]
20    pub limit_services: Option<bool>,
21    /// Indicates whether the is account is locked for editing or not.
22    #[serde(rename = "locked", skip_serializing_if = "Option::is_none")]
23    pub locked: Option<bool>,
24    /// Indicates if a new password is required at next login.
25    #[serde(rename = "require_new_password", skip_serializing_if = "Option::is_none")]
26    pub require_new_password: Option<bool>,
27    #[serde(rename = "role", skip_serializing_if = "Option::is_none")]
28    pub role: Option<crate::models::RoleUser>,
29    /// Indicates if 2FA is enabled on the user.
30    #[serde(rename = "two_factor_auth_enabled", skip_serializing_if = "Option::is_none")]
31    pub two_factor_auth_enabled: Option<bool>,
32    /// Indicates if 2FA is required by the user's customer account.
33    #[serde(rename = "two_factor_setup_required", skip_serializing_if = "Option::is_none")]
34    pub two_factor_setup_required: Option<bool>,
35    /// Date and time in ISO 8601 format.
36    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
37    pub created_at: Option<String>,
38    /// Date and time in ISO 8601 format.
39    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
40    pub deleted_at: Option<String>,
41    /// Date and time in ISO 8601 format.
42    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
43    pub updated_at: Option<String>,
44    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
45    pub id: Option<Box<String>>,
46    /// The alphanumeric string identifying a email login.
47    #[serde(rename = "email_hash", skip_serializing_if = "Option::is_none")]
48    pub email_hash: Option<String>,
49    #[serde(rename = "customer_id", skip_serializing_if = "Option::is_none")]
50    pub customer_id: Option<Box<String>>,
51}
52
53impl UserResponse {
54    pub fn new() -> UserResponse {
55        UserResponse {
56            login: None,
57            name: None,
58            limit_services: None,
59            locked: None,
60            require_new_password: None,
61            role: None,
62            two_factor_auth_enabled: None,
63            two_factor_setup_required: None,
64            created_at: None,
65            deleted_at: None,
66            updated_at: None,
67            id: None,
68            email_hash: None,
69            customer_id: None,
70        }
71    }
72}
73
74