From 01faf8cf35ffa6cf9c9a2435d136f5b98674a709 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 12 Dec 2022 11:38:59 -0800 Subject: [PATCH] ascii_case_insensitive instead of serialize_all --- entities/src/sea_orm_active_enums.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entities/src/sea_orm_active_enums.rs b/entities/src/sea_orm_active_enums.rs index 475db7d6..fc91be63 100644 --- a/entities/src/sea_orm_active_enums.rs +++ b/entities/src/sea_orm_active_enums.rs @@ -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,