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

This commit is contained in:
dqnid committed 2026-06-03 23:46:49 +02:00
1 parent cc22d3b719
commit f02ee8fff9
7 files changed
+53 -20

No files matched your search

+11
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>;
}