summaryrefslogtreecommitdiffstats
path: root/src/configuration.rs
blob: c28ad143f9566638cb483373170e2454bde88540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
    }
}