lib: impl Edit for Note

This commit is contained in:
Matthias Beyer 2016-03-25 16:38:09 +01:00
parent 97d436db22
commit ded011b5b6

View file

@ -3,6 +3,8 @@ use std::ops::{DerefMut, Deref};
use toml::Value;
use libimagrt::runtime::Runtime;
use libimagrt::edit::{Edit, EditResult};
use libimagstore::storeid::IntoStoreId;
use libimagstore::storeid::StoreId;
use libimagstore::storeid::StoreIdIterator;
@ -107,6 +109,14 @@ impl<'a> Note<'a> {
}
impl<'a> Edit for Note<'a> {
fn edit_content(&mut self, rt: &Runtime) -> EditResult<()> {
self.entry.edit_content(rt)
}
}
impl<'a> Tagable for Note<'a> {
fn get_tags(&self) -> TagResult<Vec<Tag>> {