rancher_client 1.0.4

Rancher API client for Rust using OpenAPI Generator and kube
Documentation
/*
 * 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,
        }
    }
}