aboutsummaryrefslogtreecommitdiffstats
path: root/crates/daemon/src/aclient/settings/meta.rs
blob: 1c9b9cd148d134383983e2c5b6f7555c5e1b678e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone)]
pub(crate) struct Settings {
    pub(super) db_path: String,
}

impl Default for Settings {
    fn default() -> Self {
        let dir = turtle_common::utils::data_dir();
        let path = dir.join("meta.db");

        Self {
            db_path: path.to_string_lossy().to_string(),
        }
    }
}