1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// Avatar : Details of an avatar.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Avatar {
/// The ID of the avatar.
#[serde(rename = "id")]
pub id: String,
/// The owner of the avatar. For a system avatar the owner is null (and nothing is returned). For non-system avatars this is the appropriate identifier, such as the ID for a project or the account ID for a user.
#[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
/// Whether the avatar is a system avatar.
#[serde(rename = "isSystemAvatar", skip_serializing_if = "Option::is_none")]
pub is_system_avatar: Option<bool>,
/// Whether the avatar is used in Jira. For example, shown as a project's avatar.
#[serde(rename = "isSelected", skip_serializing_if = "Option::is_none")]
pub is_selected: Option<bool>,
/// Whether the avatar can be deleted.
#[serde(rename = "isDeletable", skip_serializing_if = "Option::is_none")]
pub is_deletable: Option<bool>,
/// The file name of the avatar icon. Returned for system avatars.
#[serde(rename = "fileName", skip_serializing_if = "Option::is_none")]
pub file_name: Option<String>,
/// The list of avatar icon URLs.
#[serde(rename = "urls", skip_serializing_if = "Option::is_none")]
pub urls: Option<::std::collections::HashMap<String, String>>,
}
impl Avatar {
/// Details of an avatar.
pub fn new(id: String) -> Avatar {
Avatar {
id,
owner: None,
is_system_avatar: None,
is_selected: None,
is_deletable: None,
file_name: None,
urls: None,
}
}
}