feat: add config loader to parse json configs
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use std::fmt::Error;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
@@ -13,4 +15,8 @@ impl Config {
|
||||
database_path: String::from("/tmp/rustysearch.db"),
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn load_from_file(config_path: &str) -> Result<Config, Error> {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user