Move rename_all to enum

i am silly, most likely
This commit is contained in:
2023-06-16 21:00:12 -05:00
parent 9b9c936edb
commit 8c03966909

View File

@@ -2,13 +2,13 @@ use serde::Deserialize;
use tracing::Level;
#[derive(Deserialize, Debug)]
#[serde(rename_all = "lowercase")]
pub enum Environment {
Production,
Development,
}
#[derive(Deserialize, Debug)]
#[serde(rename_all = "lowercase")]
pub struct Configuration {
#[serde(default = "default_env")]
pub env: Environment,