jira_api_v2/models/
nested_response.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 NestedResponse {
16    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
17    pub status: Option<i32>,
18    #[serde(rename = "errorCollection", skip_serializing_if = "Option::is_none")]
19    pub error_collection: Option<Box<models::ErrorCollection>>,
20}
21
22impl NestedResponse {
23    pub fn new() -> NestedResponse {
24        NestedResponse {
25            status: None,
26            error_collection: None,
27        }
28    }
29}
30