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 } }