summaryrefslogtreecommitdiffstats
path: root/src/configuration.rs
blob: 165b503c991b72b564d69a8c75bec5e6fece40b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use std::path::PathBuf;
use serde::Deserialize;

#[derive(Debug, Deserialize)]
pub struct Configuration {
    notmuch_database_path: PathBuf,
    notmuch_default_query: String,
}

impl Configuration {
    pub fn notmuch_database_path(&self) -> &PathBuf {
        &self.notmuch_database_path
    }

    pub fn notmuch_default_query(&self) -> &String {
        &self.notmuch_default_query
    }
}