From 64581d20888589b2b955297db6a27ce6e29d513a Mon Sep 17 00:00:00 2001 From: naskya Date: Sat, 13 Apr 2024 00:00:19 +0900 Subject: [PATCH] chore (backend-rs): add serde attribute This is redundant though --- packages/backend-rs/src/config/server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend-rs/src/config/server.rs b/packages/backend-rs/src/config/server.rs index e958f4dc43..125bae90b9 100644 --- a/packages/backend-rs/src/config/server.rs +++ b/packages/backend-rs/src/config/server.rs @@ -58,6 +58,7 @@ pub struct ServerConfig { } #[derive(Clone, Debug, PartialEq, Deserialize)] +#[serde(rename_all = "camelCase")] #[crate::export(object, use_nullable = false)] pub struct DbConfig { pub host: String, @@ -70,6 +71,7 @@ pub struct DbConfig { } #[derive(Clone, Debug, PartialEq, Deserialize)] +#[serde(rename_all = "camelCase")] #[crate::export(object, use_nullable = false)] pub struct RedisConfig { pub host: String,