feat: minor refactor to clarify configs with env + initial thoughs on truth source model
This commit is contained in:
1 parent
cc22d3b719
commit
f02ee8fff9
7 files changed
+53
-20
No files matched your search
@@ -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