jira_api_v2/models/
version_issue_counts.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/// VersionIssueCounts : Various counts of issues within a version.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VersionIssueCounts {
17    /// The URL of these count details.
18    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
19    pub param_self: Option<String>,
20    /// Count of issues where the `fixVersion` is set to the version.
21    #[serde(rename = "issuesFixedCount", skip_serializing_if = "Option::is_none")]
22    pub issues_fixed_count: Option<i64>,
23    /// Count of issues where the `affectedVersion` is set to the version.
24    #[serde(rename = "issuesAffectedCount", skip_serializing_if = "Option::is_none")]
25    pub issues_affected_count: Option<i64>,
26    /// Count of issues where a version custom field is set to the version.
27    #[serde(rename = "issueCountWithCustomFieldsShowingVersion", skip_serializing_if = "Option::is_none")]
28    pub issue_count_with_custom_fields_showing_version: Option<i64>,
29    /// List of custom fields using the version.
30    #[serde(rename = "customFieldUsage", skip_serializing_if = "Option::is_none")]
31    pub custom_field_usage: Option<Vec<models::VersionUsageInCustomField>>,
32}
33
34impl VersionIssueCounts {
35    /// Various counts of issues within a version.
36    pub fn new() -> VersionIssueCounts {
37        VersionIssueCounts {
38            param_self: None,
39            issues_fixed_count: None,
40            issues_affected_count: None,
41            issue_count_with_custom_fields_showing_version: None,
42            custom_field_usage: None,
43        }
44    }
45}
46