use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PveCmodeEnum {
#[serde(rename = "shell")]
Shell,
#[serde(rename = "console")]
Console,
#[serde(rename = "tty")]
Tty,
}
impl std::fmt::Display for PveCmodeEnum {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Shell => write!(f, "shell"),
Self::Console => write!(f, "console"),
Self::Tty => write!(f, "tty"),
}
}
}
impl Default for PveCmodeEnum {
fn default() -> PveCmodeEnum {
Self::Shell
}
}