pub trait EntryCategory {
    fn set_category(&mut self, s: &str) -> Result<()>;
    fn set_category_checked(
        &mut self,
        register: &dyn CategoryStore,
        s: &str
    ) -> Result<()>; fn get_category(&self) -> Result<String>; fn has_category(&self) -> Result<bool>; fn remove_category(&mut self) -> Result<()>; }

Required Methods

Implementations on Foreign Types

source

impl EntryCategory for Entry

Check whether a category exists before setting it.

This function should be used by default over EntryCategory::set_category()!

Remove the category setting

Warning

This does only remove the category setting in the header. This does not remove the internal link to the category entry, nor does it remove the category from the store.

Implementors