diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-10-25 19:35:04 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-10-26 16:24:02 +0200 |
commit | e3db947e685ab2d17bd41e17adc8ff90505cbcfb (patch) | |
tree | 94b7c79da163d8a11b51ad7f4b7e74ae9f832745 /lib | |
parent | 447a73f43814a825423fe5591bd5b34857b9ba21 (diff) |
Add Entry::set_content()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/libimagstore/src/store.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/core/libimagstore/src/store.rs b/lib/core/libimagstore/src/store.rs index 49f76164..f30b43a3 100644 --- a/lib/core/libimagstore/src/store.rs +++ b/lib/core/libimagstore/src/store.rs @@ -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 |