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
/*
* 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
*/
/// Configuration : Details about the configuration of Jira.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Configuration {
/// Whether the ability for users to vote on issues is enabled. See [Configuring Jira application options](https://confluence.atlassian.com/x/uYXKM) for details.
#[serde(rename = "votingEnabled", skip_serializing_if = "Option::is_none")]
pub voting_enabled: Option<bool>,
/// Whether the ability for users to watch issues is enabled. See [Configuring Jira application options](https://confluence.atlassian.com/x/uYXKM) for details.
#[serde(rename = "watchingEnabled", skip_serializing_if = "Option::is_none")]
pub watching_enabled: Option<bool>,
/// Whether the ability to create unassigned issues is enabled. See [Configuring Jira application options](https://confluence.atlassian.com/x/uYXKM) for details.
#[serde(rename = "unassignedIssuesAllowed", skip_serializing_if = "Option::is_none")]
pub unassigned_issues_allowed: Option<bool>,
/// Whether the ability to create subtasks for issues is enabled.
#[serde(rename = "subTasksEnabled", skip_serializing_if = "Option::is_none")]
pub sub_tasks_enabled: Option<bool>,
/// Whether the ability to link issues is enabled.
#[serde(rename = "issueLinkingEnabled", skip_serializing_if = "Option::is_none")]
pub issue_linking_enabled: Option<bool>,
/// Whether the ability to track time is enabled. This property is deprecated.
#[serde(rename = "timeTrackingEnabled", skip_serializing_if = "Option::is_none")]
pub time_tracking_enabled: Option<bool>,
/// Whether the ability to add attachments to issues is enabled.
#[serde(rename = "attachmentsEnabled", skip_serializing_if = "Option::is_none")]
pub attachments_enabled: Option<bool>,
/// The configuration of time tracking.
#[serde(rename = "timeTrackingConfiguration", skip_serializing_if = "Option::is_none")]
pub time_tracking_configuration: Option<crate::models::TimeTrackingConfiguration>,
}
impl Configuration {
/// Details about the configuration of Jira.
pub fn new() -> Configuration {
Configuration {
voting_enabled: None,
watching_enabled: None,
unassigned_issues_allowed: None,
sub_tasks_enabled: None,
issue_linking_enabled: None,
time_tracking_enabled: None,
attachments_enabled: None,
time_tracking_configuration: None,
}
}
}