jira_api_v2/models/
field_configuration_scheme_projects.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/// FieldConfigurationSchemeProjects : Project list with assigned field configuration schema.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FieldConfigurationSchemeProjects {
17    #[serde(rename = "fieldConfigurationScheme", skip_serializing_if = "Option::is_none")]
18    pub field_configuration_scheme: Option<Box<models::FieldConfigurationScheme>>,
19    /// The IDs of projects using the field configuration scheme.
20    #[serde(rename = "projectIds")]
21    pub project_ids: Vec<String>,
22}
23
24impl FieldConfigurationSchemeProjects {
25    /// Project list with assigned field configuration schema.
26    pub fn new(project_ids: Vec<String>) -> FieldConfigurationSchemeProjects {
27        FieldConfigurationSchemeProjects {
28            field_configuration_scheme: None,
29            project_ids,
30        }
31    }
32}
33