/*
* 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};
/// RulePayload : The payload for creating rules in a workflow
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RulePayload {
/// The parameters of the rule
#[serde(rename = "parameters", skip_serializing_if = "Option::is_none")]
pub parameters: Option<std::collections::HashMap<String, String>>,
/// The key of the rule. See https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/\\#api-rest-api-3-workflows-capabilities-get
#[serde(rename = "ruleKey", skip_serializing_if = "Option::is_none")]
pub rule_key: Option<String>,
}
impl RulePayload {
/// The payload for creating rules in a workflow
pub fn new() -> RulePayload {
RulePayload {
parameters: None,
rule_key: None,
}
}
}