use std::fmt::{self, Display, Formatter};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum FileFormat {
Json,
Toml,
Yaml,
}
impl Display for FileFormat {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
match self {
Self::Json => write!(f, "json"),
Self::Toml => write!(f, "toml"),
Self::Yaml => write!(f, "yaml"),
}
}
}