Use lowercase for environment deserialization

god i hope this is the answer
This commit is contained in:
2023-06-16 20:57:34 -05:00
parent 5ef1e3b664
commit 9b9c936edb

View File

@@ -8,6 +8,7 @@ pub enum Environment {
}
#[derive(Deserialize, Debug)]
#[serde(rename_all = "lowercase")]
pub struct Configuration {
#[serde(default = "default_env")]
pub env: Environment,