jira_api_v2/models/
version_usage_in_custom_field.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/// VersionUsageInCustomField : List of custom fields using the version.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VersionUsageInCustomField {
17    /// The name of the custom field.
18    #[serde(rename = "fieldName", skip_serializing_if = "Option::is_none")]
19    pub field_name: Option<String>,
20    /// The ID of the custom field.
21    #[serde(rename = "customFieldId", skip_serializing_if = "Option::is_none")]
22    pub custom_field_id: Option<i64>,
23    /// Count of the issues where the custom field contains the version.
24    #[serde(rename = "issueCountWithVersionInCustomField", skip_serializing_if = "Option::is_none")]
25    pub issue_count_with_version_in_custom_field: Option<i64>,
26}
27
28impl VersionUsageInCustomField {
29    /// List of custom fields using the version.
30    pub fn new() -> VersionUsageInCustomField {
31        VersionUsageInCustomField {
32            field_name: None,
33            custom_field_id: None,
34            issue_count_with_version_in_custom_field: None,
35        }
36    }
37}
38