jira_api_v2/models/
user_key.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/// UserKey : List of user account IDs.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserKey {
17    /// 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.
18    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
19    pub key: Option<String>,
20    /// The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Returns *unknown* if the record is deleted and corrupted, for example, as the result of a server import.
21    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
22    pub account_id: Option<String>,
23}
24
25impl UserKey {
26    /// List of user account IDs.
27    pub fn new() -> UserKey {
28        UserKey {
29            key: None,
30            account_id: None,
31        }
32    }
33}
34