jira/gen/models/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
11/// ErrorCollection : Error messages from an operation.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ErrorCollection {
15 /// The list of error messages produced by this operation. For example, \"input parameter 'key' must be provided\"
16 #[serde(rename = "errorMessages", skip_serializing_if = "Option::is_none")]
17 pub error_messages: Option<Vec<String>>,
18 /// 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.\"
19 #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
20 pub errors: Option<::std::collections::HashMap<String, String>>,
21 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
22 pub status: Option<i32>,
23}
24
25impl ErrorCollection {
26 /// Error messages from an operation.
27 pub fn new() -> ErrorCollection {
28 ErrorCollection {
29 error_messages: None,
30 errors: None,
31 status: None,
32 }
33 }
34}