Skip to main content

clientapi_pve/models/
cluster_ha_read_rule_response_data.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ClusterHaReadRuleResponseData {
16
17    /// HA rule identifier.
18    #[serde(rename = "rule")]
19    pub rule: String,
20
21    /// HA rule type.
22    #[serde(rename = "type")]
23    pub r#type: models::PveCauseEnum,
24
25
26}
27
28impl ClusterHaReadRuleResponseData {
29    pub fn new(rule: String, r#type: models::PveCauseEnum) -> ClusterHaReadRuleResponseData {
30        ClusterHaReadRuleResponseData {
31            
32            rule,
33            
34            r#type,
35            
36        }
37    }
38}
39
40