jira_api_v2/models/user_bean.rs
1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
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 UserBean {
16 /// This property is deprecated in favor of `accountId` because of privacy changes. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The key of the user.
17 #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
18 pub key: Option<String>,
19 /// The URL of the user.
20 #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
21 pub param_self: Option<String>,
22 /// This property is deprecated in favor of `accountId` because of privacy changes. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The username of the user.
23 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24 pub name: Option<String>,
25 /// The display name of the user. Depending on the user’s privacy setting, this may return an alternative value.
26 #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
27 pub display_name: Option<String>,
28 /// Whether the user is active.
29 #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
30 pub active: Option<bool>,
31 /// The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*.
32 #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
33 pub account_id: Option<String>,
34 /// The avatars of the user.
35 #[serde(rename = "avatarUrls", skip_serializing_if = "Option::is_none")]
36 pub avatar_urls: Option<Box<models::UserBeanAvatarUrls>>,
37}
38
39impl UserBean {
40 pub fn new() -> UserBean {
41 UserBean {
42 key: None,
43 param_self: None,
44 name: None,
45 display_name: None,
46 active: None,
47 account_id: None,
48 avatar_urls: None,
49 }
50 }
51}
52