Add EntryHeader type for store
This commit is contained in:
parent
a6cc103584
commit
ac1dd3e7f3
1 changed files with 19 additions and 0 deletions
19
libimagstore/src/header.rs
Normal file
19
libimagstore/src/header.rs
Normal file
|
@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue