jira/gen/models/workflow_transition_rules_update_error_details.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
11/// WorkflowTransitionRulesUpdateErrorDetails : Details of any errors encountered while updating workflow transition rules for a workflow.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct WorkflowTransitionRulesUpdateErrorDetails {
15 #[serde(rename = "workflowId")]
16 pub workflow_id: crate::gen::models::WorkflowId,
17 /// A list of transition rule update errors, indexed by the transition rule ID. Any transition rule that appears here wasn't updated.
18 #[serde(rename = "ruleUpdateErrors")]
19 pub rule_update_errors: ::std::collections::HashMap<String, Vec<String>>,
20 /// The list of errors that specify why the workflow update failed. The workflow was not updated if the list contains any entries.
21 #[serde(rename = "updateErrors")]
22 pub update_errors: Vec<String>,
23}
24
25impl WorkflowTransitionRulesUpdateErrorDetails {
26 /// Details of any errors encountered while updating workflow transition rules for a workflow.
27 pub fn new(
28 workflow_id: crate::gen::models::WorkflowId,
29 rule_update_errors: ::std::collections::HashMap<String, Vec<String>>,
30 update_errors: Vec<String>,
31 ) -> WorkflowTransitionRulesUpdateErrorDetails {
32 WorkflowTransitionRulesUpdateErrorDetails {
33 workflow_id,
34 rule_update_errors,
35 update_errors,
36 }
37 }
38}