lib: impl Edit for Note
This commit is contained in:
parent
97d436db22
commit
ded011b5b6
1 changed files with 10 additions and 0 deletions
|
@ -3,6 +3,8 @@ use std::ops::{DerefMut, Deref};
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
use libimagrt::runtime::Runtime;
|
||||||
|
use libimagrt::edit::{Edit, EditResult};
|
||||||
use libimagstore::storeid::IntoStoreId;
|
use libimagstore::storeid::IntoStoreId;
|
||||||
use libimagstore::storeid::StoreId;
|
use libimagstore::storeid::StoreId;
|
||||||
use libimagstore::storeid::StoreIdIterator;
|
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> {
|
impl<'a> Tagable for Note<'a> {
|
||||||
|
|
||||||
fn get_tags(&self) -> TagResult<Vec<Tag>> {
|
fn get_tags(&self) -> TagResult<Vec<Tag>> {
|
||||||
|
|
Loading…
Reference in a new issue