jira_api_v2/models/
field_configuration_scheme_project_association.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/// FieldConfigurationSchemeProjectAssociation : Associated field configuration scheme and project.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FieldConfigurationSchemeProjectAssociation {
17    /// The ID of the field configuration scheme. If the field configuration scheme ID is `null`, the operation assigns the default field configuration scheme.
18    #[serde(rename = "fieldConfigurationSchemeId", skip_serializing_if = "Option::is_none")]
19    pub field_configuration_scheme_id: Option<String>,
20    /// The ID of the project.
21    #[serde(rename = "projectId")]
22    pub project_id: String,
23}
24
25impl FieldConfigurationSchemeProjectAssociation {
26    /// Associated field configuration scheme and project.
27    pub fn new(project_id: String) -> FieldConfigurationSchemeProjectAssociation {
28        FieldConfigurationSchemeProjectAssociation {
29            field_configuration_scheme_id: None,
30            project_id,
31        }
32    }
33}
34