ascii_case_insensitive instead of serialize_all
This commit is contained in:
parent
78df4177a6
commit
01faf8cf35
@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
||||
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "log_level")]
|
||||
#[strum(serialize_all = "lowercase")]
|
||||
#[strum(ascii_case_insensitive)]
|
||||
pub enum LogLevel {
|
||||
#[sea_orm(string_value = "none")]
|
||||
None,
|
||||
|
Loading…
Reference in New Issue
Block a user