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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* 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
*/
/// UpdateProjectDetails : Details about the project.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UpdateProjectDetails {
/// Project keys must be unique and start with an uppercase letter followed by one or more uppercase alphanumeric characters. The maximum length is 10 characters.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// The name of the project.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// A brief description of the project.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// This parameter is deprecated because of privacy changes. Use `leadAccountId` instead. See the [migration guide](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. The user name of the project lead. Cannot be provided with `leadAccountId`.
#[serde(rename = "lead", skip_serializing_if = "Option::is_none")]
pub lead: Option<String>,
/// The account ID of the project lead. Cannot be provided with `lead`.
#[serde(rename = "leadAccountId", skip_serializing_if = "Option::is_none")]
pub lead_account_id: Option<String>,
/// A link to information about this project, such as project documentation
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
/// The default assignee when creating issues for this project.
#[serde(rename = "assigneeType", skip_serializing_if = "Option::is_none")]
pub assignee_type: Option<AssigneeType>,
/// An integer value for the project's avatar.
#[serde(rename = "avatarId", skip_serializing_if = "Option::is_none")]
pub avatar_id: Option<i64>,
/// The ID of the issue security scheme for the project, which enables you to control who can and cannot view issues. Use the [Get issue security schemes](#api-rest-api-2-issuesecurityschemes-get) resource to get all issue security scheme IDs.
#[serde(rename = "issueSecurityScheme", skip_serializing_if = "Option::is_none")]
pub issue_security_scheme: Option<i64>,
/// The ID of the permission scheme for the project. Use the [Get all permission schemes](#api-rest-api-2-permissionscheme-get) resource to see a list of all permission scheme IDs.
#[serde(rename = "permissionScheme", skip_serializing_if = "Option::is_none")]
pub permission_scheme: Option<i64>,
/// The ID of the notification scheme for the project. Use the [Get notification schemes](#api-rest-api-2-notificationscheme-get) resource to get a list of notification scheme IDs.
#[serde(rename = "notificationScheme", skip_serializing_if = "Option::is_none")]
pub notification_scheme: Option<i64>,
/// The ID of the project's category. A complete list of category IDs is found using the [Get all project categories](#api-rest-api-2-projectCategory-get) operation. To remove the project category from the project, set the value to `-1.`
#[serde(rename = "categoryId", skip_serializing_if = "Option::is_none")]
pub category_id: Option<i64>,
}
impl UpdateProjectDetails {
/// Details about the project.
pub fn new() -> UpdateProjectDetails {
UpdateProjectDetails {
key: None,
name: None,
description: None,
lead: None,
lead_account_id: None,
url: None,
assignee_type: None,
avatar_id: None,
issue_security_scheme: None,
permission_scheme: None,
notification_scheme: None,
category_id: None,
}
}
}
/// The default assignee when creating issues for this project.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AssigneeType {
#[serde(rename = "PROJECT_LEAD")]
PROJECTLEAD,
#[serde(rename = "UNASSIGNED")]
UNASSIGNED,
}
impl Default for AssigneeType {
fn default() -> AssigneeType {
Self::PROJECTLEAD
}
}