jira_api_v2/models/
workflow_scheme_associations.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/// WorkflowSchemeAssociations : A workflow scheme along with a list of projects that use it.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WorkflowSchemeAssociations {
17    /// The list of projects that use the workflow scheme.
18    #[serde(rename = "projectIds")]
19    pub project_ids: Vec<String>,
20    /// The workflow scheme.
21    #[serde(rename = "workflowScheme")]
22    pub workflow_scheme: Box<models::WorkflowScheme>,
23}
24
25impl WorkflowSchemeAssociations {
26    /// A workflow scheme along with a list of projects that use it.
27    pub fn new(project_ids: Vec<String>, workflow_scheme: models::WorkflowScheme) -> WorkflowSchemeAssociations {
28        WorkflowSchemeAssociations {
29            project_ids,
30            workflow_scheme: Box::new(workflow_scheme),
31        }
32    }
33}
34