mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-06 01:16:36 -06:00
Move rename_all to enum
i am silly, most likely
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user