Trait libimagcontact::store::ContactStore
[−]
[src]
pub trait ContactStore<'a>: RefStore<'a> { fn create_from_path(&'a self, p: &PathBuf) -> Result<FileLockEntry<'a>>; fn create_from_buf<P: AsRef<Path>>(
&'a self,
p: P,
buf: &String
) -> Result<FileLockEntry<'a>>; fn all_contacts(&'a self) -> Result<StoreIdIterator>; }
Required Methods
fn create_from_path(&'a self, p: &PathBuf) -> Result<FileLockEntry<'a>>
fn create_from_buf<P: AsRef<Path>>(
&'a self,
p: P,
buf: &String
) -> Result<FileLockEntry<'a>>
&'a self,
p: P,
buf: &String
) -> Result<FileLockEntry<'a>>
Create contact ref from buffer
Needs the p
argument as we're finally creating a reference by path, the buffer is only for
collecting metadata.
fn all_contacts(&'a self) -> Result<StoreIdIterator>
Implementations on Foreign Types
impl<'a> ContactStore<'a> for Store
[src]
The extension for the Store to work with contacts
The contact functionality is implemented by using the libimagentryref
library, so basically
we only reference vcard files from outside the store.
Because of this, we do not have an own store collection /contacts
or something like that, but
must stress the libimagentryref
API for everything.
fn create_from_path(&'a self, p: &PathBuf) -> Result<FileLockEntry<'a>>
[src]
fn create_from_buf<P: AsRef<Path>>(
&'a self,
p: P,
buf: &String
) -> Result<FileLockEntry<'a>>
[src]
&'a self,
p: P,
buf: &String
) -> Result<FileLockEntry<'a>>
Create contact ref from buffer