use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ReleaseType {
#[serde(rename = "stable")]
Stable,
#[serde(rename = "beta")]
Beta,
#[serde(rename = "alpha")]
Alpha,
}
impl std::fmt::Display for ReleaseType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Stable => write!(f, "stable"),
Self::Beta => write!(f, "beta"),
Self::Alpha => write!(f, "alpha"),
}
}
}
impl Default for ReleaseType {
fn default() -> ReleaseType {
Self::Stable
}
}