From 79f1ea075d0d3ad3514da7120faa1c3c5fd17bfc Mon Sep 17 00:00:00 2001 From: Matt Bradbury Date: Sat, 4 Apr 2020 12:19:24 -0500 Subject: Hack to make issue #1 sort of work --- fondant_deps/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fondant_deps') diff --git a/fondant_deps/src/lib.rs b/fondant_deps/src/lib.rs index 6f62ce8..9559b11 100644 --- a/fondant_deps/src/lib.rs +++ b/fondant_deps/src/lib.rs @@ -21,6 +21,8 @@ pub mod fondant_exports { } use serde::{de::DeserializeOwned, Serialize}; +use std::path::PathBuf; + #[derive(Debug)] /// Errors that `load` and `store` can result in pub enum FondantError { @@ -42,6 +44,9 @@ pub enum FondantError { /// Derive this trait on a struct to mark it as a 'configuration' struct. pub trait Configure: Serialize + DeserializeOwned + Default { + fn load_file(config_file: &PathBuf) -> Result; fn load() -> Result; fn store(&self) -> Result<(), FondantError>; + fn store_file(&self, config_file: &PathBuf) -> Result<(), FondantError>; + } -- cgit v1.2.3