jira_api_v2/models/
simple_error_collection.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SimpleErrorCollection {
16    /// The list of errors by parameter returned by the operation. For example,\"projectKey\": \"Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.\"
17    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
18    pub errors: Option<std::collections::HashMap<String, String>>,
19    /// The list of error messages produced by this operation. For example, \"input parameter 'key' must be provided\"
20    #[serde(rename = "errorMessages", skip_serializing_if = "Option::is_none")]
21    pub error_messages: Option<Vec<String>>,
22    #[serde(rename = "httpStatusCode", skip_serializing_if = "Option::is_none")]
23    pub http_status_code: Option<i32>,
24}
25
26impl SimpleErrorCollection {
27    pub fn new() -> SimpleErrorCollection {
28        SimpleErrorCollection {
29            errors: None,
30            error_messages: None,
31            http_status_code: None,
32        }
33    }
34}
35