imag/libimagstore/src/header.rs

21 lines
278 B
Rust
Raw Normal View History

2016-01-12 17:50:57 +00:00
use toml::Table;
2016-01-16 18:16:41 +00:00
#[derive(Debug, Clone)]
2016-01-12 17:50:57 +00:00
pub struct EntryHeader {
toml: Table,
}
impl EntryHeader {
pub fn new(toml: Table) -> EntryHeader {
EntryHeader {
toml: toml,
}
}
pub fn toml(&self) -> &Table {
&self.toml
}
}