[][src]Trait libimagentrycategory::entry::EntryCategory

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

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<()>

Loading content...

Implementations on Foreign Types

impl EntryCategory for Entry[src]

fn set_category_checked(
    &mut self,
    register: &dyn CategoryStore,
    s: &str
) -> Result<()>
[src]

Check whether a category exists before setting it.

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

fn remove_category(&mut self) -> Result<()>[src]

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.

Loading content...

Implementors

Loading content...