pub trait InboxApi: Send + Sync {
// Required methods
fn approve_inbox_item_by_id<'thing_uid, 'accept_language, 'new_thing_id, 'body, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
accept_language: Option<&'accept_language str>,
new_thing_id: Option<&'new_thing_id str>,
body: Option<&'body str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ApproveInboxItemByIdError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'thing_uid: 'async_trait,
'accept_language: 'async_trait,
'new_thing_id: 'async_trait,
'body: 'async_trait,
'life0: 'async_trait;
fn flag_inbox_item_as_ignored<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<FlagInboxItemAsIgnoredError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait;
fn get_discovered_inbox_items<'include_ignored, 'life0, 'async_trait>(
&'life0 self,
include_ignored: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveryResultDto>, Error<GetDiscoveredInboxItemsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'include_ignored: 'async_trait,
'life0: 'async_trait;
fn remove_ignore_flag_on_inbox_item<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveIgnoreFlagOnInboxItemError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait;
fn remove_item_from_inbox<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveItemFromInboxError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
inbox_api only.Required Methods§
Sourcefn approve_inbox_item_by_id<'thing_uid, 'accept_language, 'new_thing_id, 'body, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
accept_language: Option<&'accept_language str>,
new_thing_id: Option<&'new_thing_id str>,
body: Option<&'body str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ApproveInboxItemByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'accept_language: 'async_trait,
'new_thing_id: 'async_trait,
'body: 'async_trait,
'life0: 'async_trait,
fn approve_inbox_item_by_id<'thing_uid, 'accept_language, 'new_thing_id, 'body, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
accept_language: Option<&'accept_language str>,
new_thing_id: Option<&'new_thing_id str>,
body: Option<&'body str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ApproveInboxItemByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'accept_language: 'async_trait,
'new_thing_id: 'async_trait,
'body: 'async_trait,
'life0: 'async_trait,
POST /inbox/{thingUID}/approve
Sourcefn flag_inbox_item_as_ignored<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<FlagInboxItemAsIgnoredError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait,
fn flag_inbox_item_as_ignored<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<FlagInboxItemAsIgnoredError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait,
POST /inbox/{thingUID}/ignore
Sourcefn get_discovered_inbox_items<'include_ignored, 'life0, 'async_trait>(
&'life0 self,
include_ignored: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveryResultDto>, Error<GetDiscoveredInboxItemsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'include_ignored: 'async_trait,
'life0: 'async_trait,
fn get_discovered_inbox_items<'include_ignored, 'life0, 'async_trait>(
&'life0 self,
include_ignored: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveryResultDto>, Error<GetDiscoveredInboxItemsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'include_ignored: 'async_trait,
'life0: 'async_trait,
GET /inbox
Sourcefn remove_ignore_flag_on_inbox_item<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveIgnoreFlagOnInboxItemError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait,
fn remove_ignore_flag_on_inbox_item<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveIgnoreFlagOnInboxItemError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait,
POST /inbox/{thingUID}/unignore
Sourcefn remove_item_from_inbox<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveItemFromInboxError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait,
fn remove_item_from_inbox<'thing_uid, 'life0, 'async_trait>(
&'life0 self,
thing_uid: &'thing_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveItemFromInboxError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'thing_uid: 'async_trait,
'life0: 'async_trait,
DELETE /inbox/{thingUID}