Skip to main content

clientapi_pve/models/
pve_content_enum.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/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum PveContentEnum {
17    #[serde(rename = "iso")]
18    Iso,
19    #[serde(rename = "vztmpl")]
20    Vztmpl,
21    #[serde(rename = "import")]
22    Import,
23
24}
25
26impl std::fmt::Display for PveContentEnum {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Iso => write!(f, "iso"),
30            Self::Vztmpl => write!(f, "vztmpl"),
31            Self::Import => write!(f, "import"),
32        }
33    }
34}
35
36impl Default for PveContentEnum {
37    fn default() -> PveContentEnum {
38        Self::Iso
39    }
40}
41