/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// UpdateFieldAssociationsRequestItem : Represents an association between a field and its operations.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateFieldAssociationsRequestItem {
/// (optional) Work types to restrict field to. Replaces any existing work type associations for the field. If not provided, the field is associated to any work types.
#[serde(rename = "restrictedToWorkTypes", skip_serializing_if = "Option::is_none")]
pub restricted_to_work_types: Option<Vec<i64>>,
/// Scheme IDs to associate field with
#[serde(rename = "schemeIds")]
pub scheme_ids: Vec<i64>,
}
impl UpdateFieldAssociationsRequestItem {
/// Represents an association between a field and its operations.
pub fn new(scheme_ids: Vec<i64>) -> UpdateFieldAssociationsRequestItem {
UpdateFieldAssociationsRequestItem {
restricted_to_work_types: None,
scheme_ids,
}
}
}