feat: minor refactor to clarify configs with env + initial thoughs on truth source model

This commit is contained in:
2026-06-03 23:46:49 +02:00
parent cc22d3b719
commit f02ee8fff9
7 changed files with 53 additions and 20 deletions

11
src/modules/source/mod.rs Normal file
View 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>;
}