Add Entry getters
This commit is contained in:
parent
4811a3780e
commit
c21bed3af9
1 changed files with 16 additions and 0 deletions
|
@ -14,3 +14,19 @@ 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_content(&self) -> &EntryContent {
|
||||
&self.content
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue