imag/libimagstore/src/header.rs

21 lines
278 B
Rust

use toml::Table;
#[derive(Debug, Clone)]
pub struct EntryHeader {
toml: Table,
}
impl EntryHeader {
pub fn new(toml: Table) -> EntryHeader {
EntryHeader {
toml: toml,
}
}
pub fn toml(&self) -> &Table {
&self.toml
}
}