chore (backend-rs): add serde attribute

This is redundant though
This commit is contained in:
naskya 2024-04-13 00:00:19 +09:00
parent 0517a83dc5
commit 64581d2088
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 2 additions and 0 deletions

View File

@ -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,