diff options
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,10 +1,8 @@ | |||
1 | use std::path::{Path, PathBuf}; | ||
2 | |||
3 | pub use serde::{de::DeserializeOwned, Serialize}; | ||
4 | pub use directories::ProjectDirs; | 1 | pub use directories::ProjectDirs; |
5 | pub use toml; | 2 | pub use serde::{de::DeserializeOwned, Serialize}; |
6 | pub use serde_json; | 3 | pub use serde_json; |
7 | pub use serde_yaml; | 4 | pub use serde_yaml; |
5 | pub use toml; | ||
8 | 6 | ||
9 | #[derive(Debug)] | 7 | #[derive(Debug)] |
10 | pub enum FondantError { | 8 | pub enum FondantError { |
@@ -17,7 +15,7 @@ pub enum FondantError { | |||
17 | FileOpenError, | 15 | FileOpenError, |
18 | } | 16 | } |
19 | 17 | ||
20 | pub trait Config: Serialize + DeserializeOwned + Default { | 18 | pub trait Configure: Serialize + DeserializeOwned + Default { |
21 | fn load() -> Result<Self, FondantError>; | 19 | fn load() -> Result<Self, FondantError>; |
22 | fn store(&self) -> Result<(), FondantError>; | 20 | fn store(&self) -> Result<(), FondantError>; |
23 | } | 21 | } |