feat: minor refactor to clarify configs with env + initial thoughs on truth source model
This commit is contained in:
11
src/modules/source/mod.rs
Normal file
11
src/modules/source/mod.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
pub struct Database {
|
||||
path: String,
|
||||
}
|
||||
|
||||
// TruthSource
|
||||
pub trait WordSource {
|
||||
fn find_word(&self, word: &str) -> Result<(), ()>;
|
||||
fn insert_word(&self, word: &str) -> Result<(), ()>;
|
||||
fn remove_word(&self, word: &str) -> Result<(), ()>;
|
||||
fn get_all_words(&self) -> Vec<String>;
|
||||
}
|
||||
Reference in New Issue
Block a user