From 257fe1880e5a640041ee27015803e109c82909bd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 6 Mar 2016 11:50:47 +0100 Subject: [PATCH] EntryHeader: Function to get toml object --- libimagstore/src/store.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 22c38d62..f1018d8a 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -351,6 +351,10 @@ impl EntryHeader { } } + pub fn header(&self) -> &Value { + &self.header + } + fn from_table(t: Table) -> EntryHeader { EntryHeader { header: Value::Table(t)