From ac1dd3e7f3a735e9dd27c38c2ea8556e949f3eb5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 12 Jan 2016 18:50:57 +0100 Subject: [PATCH] Add EntryHeader type for store --- libimagstore/src/header.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libimagstore/src/header.rs diff --git a/libimagstore/src/header.rs b/libimagstore/src/header.rs new file mode 100644 index 00000000..738807dd --- /dev/null +++ b/libimagstore/src/header.rs @@ -0,0 +1,19 @@ +use toml::Table; + +pub struct EntryHeader { + toml: Table, +} + +impl EntryHeader { + + pub fn new(toml: Table) -> EntryHeader { + EntryHeader { + toml: toml, + } + } + + pub fn toml(&self) -> &Table { + &self.toml + } + +}