Switch db from json to toml

This commit is contained in:
Lennart
2023-09-07 18:45:28 +02:00
parent 82f15733fa
commit 4da1507919
3 changed files with 13 additions and 13 deletions

View File

@@ -1,14 +1,14 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
pub struct JsonCalendarStoreConfig {
pub struct TomlCalendarStoreConfig {
pub db_path: String,
}
#[derive(Debug, Deserialize, Serialize)]
#[serde(tag = "backend", rename_all = "snake_case")]
pub enum CalendarStoreConfig {
Json(JsonCalendarStoreConfig),
Toml(TomlCalendarStoreConfig),
}
#[derive(Debug, Deserialize, Serialize)]