pub struct NoContacts;Expand description
The contacts backend of a server that has none. Its tools stay hidden.
Trait Implementations§
Source§impl Clone for NoContacts
impl Clone for NoContacts
Source§impl ContactsProvider for NoContacts
impl ContactsProvider for NoContacts
Source§async fn search(&self, _query: &ContactQuery) -> Result<ContactList, CoreError>
async fn search(&self, _query: &ContactQuery) -> Result<ContactList, CoreError>
Searches contacts. Read more
Source§async fn get(&self, _path: &ResourcePath) -> Result<Contact, CoreError>
async fn get(&self, _path: &ResourcePath) -> Result<Contact, CoreError>
Fetches one contact. Read more
Source§async fn create(&self, _draft: &ContactDraft) -> Result<ResourcePath, CoreError>
async fn create(&self, _draft: &ContactDraft) -> Result<ResourcePath, CoreError>
Creates a contact. Read more
Source§async fn update(
&self,
_path: &ResourcePath,
_etag: &ETag,
_update: &ContactUpdate,
) -> Result<ETag, CoreError>
async fn update( &self, _path: &ResourcePath, _etag: &ETag, _update: &ContactUpdate, ) -> Result<ETag, CoreError>
Replaces a contact when the
ETag still matches. Read moreSource§async fn delete(
&self,
_path: &ResourcePath,
_etag: &ETag,
) -> Result<(), CoreError>
async fn delete( &self, _path: &ResourcePath, _etag: &ETag, ) -> Result<(), CoreError>
Deletes a contact. Read more
Source§async fn set_group_membership(
&self,
_group: &ResourcePath,
_contact: &ResourcePath,
_change: GroupChange,
) -> Result<(), CoreError>
async fn set_group_membership( &self, _group: &ResourcePath, _contact: &ResourcePath, _change: GroupChange, ) -> Result<(), CoreError>
Adds or removes a contact in an existing group. Read more
impl Copy for NoContacts
Source§impl Debug for NoContacts
impl Debug for NoContacts
Auto Trait Implementations§
impl Forget for NoContacts
impl Freeze for NoContacts
impl Move for NoContacts
impl RefUnwindSafe for NoContacts
impl Send for NoContacts
impl Sync for NoContacts
impl Unpin for NoContacts
impl UnsafeUnpin for NoContacts
impl UnwindSafe for NoContacts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more