Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
serde tag and rename setting enums
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Nov 7, 2018
1 parent 4f94f46 commit 64afc1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ pub struct RedisStoreConfig {
}

#[derive(Debug, Deserialize, Clone)]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum DataStore {
Sqlite(SqliteStoreConfig),
Postgres(PostgresStoreConfig),
}

#[derive(Debug, Deserialize, Clone)]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum CacheStore {
Sqlite(SqliteStoreConfig),
Redis(RedisStoreConfig),
Expand Down

0 comments on commit 64afc1e

Please sign in to comment.