aboutsummaryrefslogtreecommitdiff
path: root/src/settings.rs
blob: 4b140a615ca2da8d3bf38620aae8ebc6e63c8ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::db::backend::{self, Connectable};

pub struct Settings<C: Connectable> {
    pub installed_apps: &'static [&'static crate::apps::AppConfig],
    pub database: C,
}

impl Default for Settings<backend::Sqlite> {
    fn default() -> Self {
        Self {
            installed_apps: &[],
            database: backend::Sqlite {
                db_file: "db.sqlite3",
            },
        }
    }
}