From ad18091b88b374eb40aa87289ad1713551706e89 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 25 Mar 2016 15:09:21 +0100 Subject: [PATCH] Store::config() added, mainly for debugging use --- libimagstore/src/store.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index af10869e..340baf22 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -240,6 +240,11 @@ impl Store { Ok(store) } + /// Get the store configuration + pub fn config(&self) -> Option<&Value> { + self.configuration.as_ref() + } + fn storify_id(&self, id: StoreId) -> StoreId { debug!("Create new store id out of: {:?} and {:?}", self.location, id); let mut new_id = self.location.clone();