diff --git a/libimagstore/src/entry.rs b/libimagstore/src/entry.rs index 682b5538..27ef3dcb 100644 --- a/libimagstore/src/entry.rs +++ b/libimagstore/src/entry.rs @@ -14,3 +14,27 @@ pub struct Entry { content: EntryContent, } +impl Entry { + + pub fn get_location(&self) -> &StoreId { + &self.location + } + + pub fn get_header(&self) -> &EntryHeader { + &self.header + } + + pub fn get_header_mut(&mut self) -> &mut EntryHeader { + &mut self.header + } + + pub fn get_content(&self) -> &EntryContent { + &self.content + } + + pub fn get_content_mut(&mut self) -> &mut EntryContent { + &mut self.content + } + +} +