pub struct MockLinksApi { /* private fields */ }links_api only.Implementations§
Source§impl MockLinksApi
impl MockLinksApi
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 MockLinksApi
impl MockLinksApi
Sourcepub fn expect_get_item_link(&mut self) -> &mut Expectation
pub fn expect_get_item_link(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_item_link method
Sourcepub fn expect_get_item_links(&mut self) -> &mut Expectation
pub fn expect_get_item_links(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_item_links method
Sourcepub fn expect_get_orphan_links(&mut self) -> &mut Expectation
pub fn expect_get_orphan_links(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_orphan_links method
Sourcepub fn expect_link_item_to_channel(&mut self) -> &mut Expectation
pub fn expect_link_item_to_channel(&mut self) -> &mut Expectation
Create an Expectation for mocking the link_item_to_channel method
Sourcepub fn expect_purge_database1(&mut self) -> &mut Expectation
pub fn expect_purge_database1(&mut self) -> &mut Expectation
Create an Expectation for mocking the purge_database1 method
Sourcepub fn expect_remove_all_links_for_object(&mut self) -> &mut Expectation
pub fn expect_remove_all_links_for_object(&mut self) -> &mut Expectation
Create an Expectation for mocking the remove_all_links_for_object method
Sourcepub fn expect_unlink_item_from_channel(&mut self) -> &mut Expectation
pub fn expect_unlink_item_from_channel(&mut self) -> &mut Expectation
Create an Expectation for mocking the unlink_item_from_channel method
Trait Implementations§
Source§impl Debug for MockLinksApi
impl Debug for MockLinksApi
Source§impl Default for MockLinksApi
impl Default for MockLinksApi
Source§impl LinksApi for MockLinksApi
impl LinksApi for MockLinksApi
Source§fn get_item_link<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<EnrichedItemChannelLinkDto, Error<GetItemLinkError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
fn get_item_link<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<EnrichedItemChannelLinkDto, Error<GetItemLinkError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
GET /links/{itemName}/{channelUID}
Source§fn get_item_links<'channel_uid, 'item_name, 'life0, 'async_trait>(
&'life0 self,
channel_uid: Option<&'channel_uid str>,
item_name: Option<&'item_name str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemChannelLinkDto>, Error<GetItemLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'channel_uid: 'async_trait,
'item_name: 'async_trait,
'life0: 'async_trait,
fn get_item_links<'channel_uid, 'item_name, 'life0, 'async_trait>(
&'life0 self,
channel_uid: Option<&'channel_uid str>,
item_name: Option<&'item_name str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemChannelLinkDto>, Error<GetItemLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'channel_uid: 'async_trait,
'item_name: 'async_trait,
'life0: 'async_trait,
GET /links
Source§fn get_orphan_links<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetOrphanLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_orphan_links<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetOrphanLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /links/orphans
Source§fn link_item_to_channel<'item_name, 'channel_uid, 'item_channel_link_dto, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
item_channel_link_dto: Option<ItemChannelLinkDto>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<LinkItemToChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'item_channel_link_dto: 'async_trait,
'life0: 'async_trait,
fn link_item_to_channel<'item_name, 'channel_uid, 'item_channel_link_dto, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
item_channel_link_dto: Option<ItemChannelLinkDto>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<LinkItemToChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'item_channel_link_dto: 'async_trait,
'life0: 'async_trait,
PUT /links/{itemName}/{channelUID}
Source§fn purge_database1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PurgeDatabase1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn purge_database1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PurgeDatabase1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /links/purge
Source§fn remove_all_links_for_object<'object, 'life0, 'async_trait>(
&'life0 self,
object: &'object str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveAllLinksForObjectError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'object: 'async_trait,
'life0: 'async_trait,
fn remove_all_links_for_object<'object, 'life0, 'async_trait>(
&'life0 self,
object: &'object str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveAllLinksForObjectError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'object: 'async_trait,
'life0: 'async_trait,
DELETE /links/{object}
Source§fn unlink_item_from_channel<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UnlinkItemFromChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
fn unlink_item_from_channel<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UnlinkItemFromChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
DELETE /links/{itemName}/{channelUID}