harbor_api/models/
errors.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Errors : The error array that describe the errors got during the handling of request
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Errors {
17    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
18    pub errors: Option<Vec<models::Error>>,
19}
20
21impl Errors {
22    /// The error array that describe the errors got during the handling of request
23    pub fn new() -> Errors {
24        Errors {
25            errors: None,
26        }
27    }
28}
29