jira_api_v2/models/
user_picker_user.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/// UserPickerUser : A user found in a search.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserPickerUser {
17    /// The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*.
18    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
19    pub account_id: Option<String>,
20    /// This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
24    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
25    pub key: Option<String>,
26    /// The display name, email address, and key of the user with the matched query string highlighted with the HTML bold tag.
27    #[serde(rename = "html", skip_serializing_if = "Option::is_none")]
28    pub html: Option<String>,
29    /// The display name of the user. Depending on the user’s privacy setting, this may be returned as null.
30    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
31    pub display_name: Option<String>,
32    /// The avatar URL of the user.
33    #[serde(rename = "avatarUrl", skip_serializing_if = "Option::is_none")]
34    pub avatar_url: Option<String>,
35}
36
37impl UserPickerUser {
38    /// A user found in a search.
39    pub fn new() -> UserPickerUser {
40        UserPickerUser {
41            account_id: None,
42            name: None,
43            key: None,
44            html: None,
45            display_name: None,
46            avatar_url: None,
47        }
48    }
49}
50