Add Entry::set_content()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
447a73f438
commit
e3db947e68
1 changed files with 5 additions and 0 deletions
|
@ -849,6 +849,11 @@ impl Entry {
|
|||
&self.content
|
||||
}
|
||||
|
||||
/// Set the content of the Entry
|
||||
pub fn set_content(&mut self, content: EntryContent) {
|
||||
self.content = content;
|
||||
}
|
||||
|
||||
/// Get the content mutably of the Entry
|
||||
pub fn get_content_mut(&mut self) -> &mut EntryContent {
|
||||
&mut self.content
|
||||
|
|
Loading…
Reference in a new issue