jira/gen/models/
configuration.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
11/// Configuration : Details about the configuration of Jira.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct Configuration {
15    /// Whether the ability for users to vote on issues is enabled. See [Configuring Jira application options](https://confluence.atlassian.com/x/uYXKM) for details.
16    #[serde(rename = "votingEnabled", skip_serializing_if = "Option::is_none")]
17    pub voting_enabled: Option<bool>,
18    /// Whether the ability for users to watch issues is enabled. See [Configuring Jira application options](https://confluence.atlassian.com/x/uYXKM) for details.
19    #[serde(rename = "watchingEnabled", skip_serializing_if = "Option::is_none")]
20    pub watching_enabled: Option<bool>,
21    /// Whether the ability to create unassigned issues is enabled. See [Configuring Jira application options](https://confluence.atlassian.com/x/uYXKM) for details.
22    #[serde(
23        rename = "unassignedIssuesAllowed",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub unassigned_issues_allowed: Option<bool>,
27    /// Whether the ability to create subtasks for issues is enabled.
28    #[serde(rename = "subTasksEnabled", skip_serializing_if = "Option::is_none")]
29    pub sub_tasks_enabled: Option<bool>,
30    /// Whether the ability to link issues is enabled.
31    #[serde(
32        rename = "issueLinkingEnabled",
33        skip_serializing_if = "Option::is_none"
34    )]
35    pub issue_linking_enabled: Option<bool>,
36    /// Whether the ability to track time is enabled. This property is deprecated.
37    #[serde(
38        rename = "timeTrackingEnabled",
39        skip_serializing_if = "Option::is_none"
40    )]
41    pub time_tracking_enabled: Option<bool>,
42    /// Whether the ability to add attachments to issues is enabled.
43    #[serde(rename = "attachmentsEnabled", skip_serializing_if = "Option::is_none")]
44    pub attachments_enabled: Option<bool>,
45    /// The configuration of time tracking.
46    #[serde(
47        rename = "timeTrackingConfiguration",
48        skip_serializing_if = "Option::is_none"
49    )]
50    pub time_tracking_configuration: Option<crate::gen::models::TimeTrackingConfiguration>,
51}
52
53impl Configuration {
54    /// Details about the configuration of Jira.
55    pub fn new() -> Configuration {
56        Configuration {
57            voting_enabled: None,
58            watching_enabled: None,
59            unassigned_issues_allowed: None,
60            sub_tasks_enabled: None,
61            issue_linking_enabled: None,
62            time_tracking_enabled: None,
63            attachments_enabled: None,
64            time_tracking_configuration: None,
65        }
66    }
67}