/*
* Harbor API
*
* These APIs provide services for manipulating Harbor project.
*
* The version of the OpenAPI document: 2.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// Error : a model for all the error response coming from harbor
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Error {
/// The error code
#[serde(rename = "code", skip_serializing_if = "Option::is_none")]
pub code: Option<String>,
/// The error message
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
}
impl Error {
/// a model for all the error response coming from harbor
pub fn new() -> Error {
Error {
code: None,
message: None,
}
}
}