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
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Kubernetes
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.27.5+k3s1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// IoCattleManagementv3ProjectStatusConditionsInner : ProjectCondition is the status of an aspect of the project.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IoCattleManagementv3ProjectStatusConditionsInner {
/// Last time the condition transitioned from one status to another.
#[serde(rename = "lastTransitionTime", skip_serializing_if = "Option::is_none")]
pub last_transition_time: Option<String>,
/// The last time this condition was updated.
#[serde(rename = "lastUpdateTime", skip_serializing_if = "Option::is_none")]
pub last_update_time: Option<String>,
/// Human-readable message indicating details about last transition.
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// The reason for the condition's last transition.
#[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
/// Status of the condition, one of True, False, Unknown.
#[serde(rename = "status")]
pub status: String,
/// Type of project condition.
#[serde(rename = "type")]
pub r#type: String,
}
impl IoCattleManagementv3ProjectStatusConditionsInner {
/// ProjectCondition is the status of an aspect of the project.
pub fn new(status: String, r#type: String) -> IoCattleManagementv3ProjectStatusConditionsInner {
IoCattleManagementv3ProjectStatusConditionsInner {
last_transition_time: None,
last_update_time: None,
message: None,
reason: None,
status,
r#type,
}
}
}