Skip to main content

clientapi_pve/models/
pve_boolean.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
14use serde_repr::{Serialize_repr,Deserialize_repr};
15/// 
16#[repr(i64)]
17#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr)]
18pub enum PveBoolean {
19    Variant0 = 0,
20    Variant1 = 1,
21
22}
23
24impl std::fmt::Display for PveBoolean {
25    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
26        write!(f, "{}", match self {
27            Self::Variant0 => "0",
28            Self::Variant1 => "1",
29        })
30    }
31}
32impl Default for PveBoolean {
33    fn default() -> PveBoolean {
34        Self::Variant0
35    }
36}
37