1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* 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};
/// ComponentHealthStatus : The health status of component
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ComponentHealthStatus {
/// The component name
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// The health status of component. Is either \"healthy\" or \"unhealthy\".
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// (optional) The error message when the status is \"unhealthy\"
#[serde(rename = "error", skip_serializing_if = "Option::is_none")]
pub error: Option<String>,
}
impl ComponentHealthStatus {
/// The health status of component
pub fn new() -> ComponentHealthStatus {
ComponentHealthStatus {
name: None,
status: None,
error: None,
}
}
}