pub struct MockInboxApi { /* private fields */ }inbox_api only.Implementations§
Source§impl MockInboxApi
impl MockInboxApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockInboxApi
impl MockInboxApi
Sourcepub fn expect_approve_inbox_item_by_id(&mut self) -> &mut Expectation
pub fn expect_approve_inbox_item_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the approve_inbox_item_by_id method
Sourcepub fn expect_flag_inbox_item_as_ignored(&mut self) -> &mut Expectation
pub fn expect_flag_inbox_item_as_ignored(&mut self) -> &mut Expectation
Create an Expectation for mocking the flag_inbox_item_as_ignored method
Sourcepub fn expect_get_discovered_inbox_items(&mut self) -> &mut Expectation
pub fn expect_get_discovered_inbox_items(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_discovered_inbox_items method
Sourcepub fn expect_remove_ignore_flag_on_inbox_item(&mut self) -> &mut Expectation
pub fn expect_remove_ignore_flag_on_inbox_item(&mut self) -> &mut Expectation
Create an Expectation for mocking the remove_ignore_flag_on_inbox_item method
Sourcepub fn expect_remove_item_from_inbox(&mut self) -> &mut Expectation
pub fn expect_remove_item_from_inbox(&mut self) -> &mut Expectation
Create an Expectation for mocking the remove_item_from_inbox method
Trait Implementations§
Source§impl Debug for MockInboxApi
impl Debug for MockInboxApi
Source§impl Default for MockInboxApi
impl Default for MockInboxApi
Source§impl InboxApi for MockInboxApi
impl InboxApi for MockInboxApi
Source§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 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
Source§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 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
Source§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 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
Source§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_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
Source§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,
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}