mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-08 14:08:44 -06:00
Use lowercase for environment deserialization
god i hope this is the answer
This commit is contained in:
@@ -8,6 +8,7 @@ pub enum Environment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
|
#[serde(rename_all = "lowercase")]
|
||||||
pub struct Configuration {
|
pub struct Configuration {
|
||||||
#[serde(default = "default_env")]
|
#[serde(default = "default_env")]
|
||||||
pub env: Environment,
|
pub env: Environment,
|
||||||
|
|||||||
Reference in New Issue
Block a user