use toml::Table; /** * EntryHeader * * This is basically a wrapper around toml::Table which provides convenience to the user of the * librray. */ #[derive(Debug, Clone)] pub struct EntryHeader { toml: Table, } impl EntryHeader { /** * Get a new header object with a already-filled toml table */ pub fn new(toml: Table) -> EntryHeader { EntryHeader { toml: toml, } } /** * Get the table which lives in the background */ pub fn toml(&self) -> &Table { &self.toml } }