[][src]Trait libimagwiki::store::WikiStore

pub trait WikiStore {
    fn get_wiki<'a, 'b>(&'a self, name: &'b str) -> Result<Option<Wiki<'a, 'b>>>;
fn create_wiki<'a, 'b>(
        &'a self,
        name: &'b str
    ) -> Result<(Wiki<'a, 'b>, FileLockEntry<'a>)>;
fn retrieve_wiki<'a, 'b>(
        &'a self,
        name: &'b str
    ) -> Result<(Wiki<'a, 'b>, FileLockEntry<'a>)>; }

Required methods

fn get_wiki<'a, 'b>(&'a self, name: &'b str) -> Result<Option<Wiki<'a, 'b>>>

fn create_wiki<'a, 'b>(
    &'a self,
    name: &'b str
) -> Result<(Wiki<'a, 'b>, FileLockEntry<'a>)>

fn retrieve_wiki<'a, 'b>(
    &'a self,
    name: &'b str
) -> Result<(Wiki<'a, 'b>, FileLockEntry<'a>)>

Loading content...

Implementations on Foreign Types

impl WikiStore for Store[src]

fn get_wiki<'a, 'b>(&'a self, name: &'b str) -> Result<Option<Wiki<'a, 'b>>>[src]

get a wiki by its name

fn create_wiki<'a, 'b>(
    &'a self,
    name: &'b str
) -> Result<(Wiki<'a, 'b>, FileLockEntry<'a>)>
[src]

Create a wiki.

Returns

Returns the Wiki object.

Ob success, an empty Wiki entry with the name index is created inside the wiki. Later, new entries are automatically linked to this entry.

Loading content...

Implementors

Loading content...