pub struct MockAddonsApi { /* private fields */ }addons_api only.Implementations§
Source§impl MockAddonsApi
impl MockAddonsApi
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 MockAddonsApi
impl MockAddonsApi
Sourcepub fn expect_get_addon_by_id(&mut self) -> &mut Expectation
pub fn expect_get_addon_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_addon_by_id method
Sourcepub fn expect_get_addon_configuration(&mut self) -> &mut Expectation
pub fn expect_get_addon_configuration(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_addon_configuration method
Sourcepub fn expect_get_addon_services(&mut self) -> &mut Expectation
pub fn expect_get_addon_services(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_addon_services method
Sourcepub fn expect_get_addon_types(&mut self) -> &mut Expectation
pub fn expect_get_addon_types(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_addon_types method
Sourcepub fn expect_get_addons(&mut self) -> &mut Expectation
pub fn expect_get_addons(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_addons method
Sourcepub fn expect_get_suggested_addons(&mut self) -> &mut Expectation
pub fn expect_get_suggested_addons(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_suggested_addons method
Sourcepub fn expect_install_addon_by_id(&mut self) -> &mut Expectation
pub fn expect_install_addon_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the install_addon_by_id method
Sourcepub fn expect_install_addon_from_url(&mut self) -> &mut Expectation
pub fn expect_install_addon_from_url(&mut self) -> &mut Expectation
Create an Expectation for mocking the install_addon_from_url method
Sourcepub fn expect_uninstall_addon(&mut self) -> &mut Expectation
pub fn expect_uninstall_addon(&mut self) -> &mut Expectation
Create an Expectation for mocking the uninstall_addon method
Sourcepub fn expect_update_addon_configuration(&mut self) -> &mut Expectation
pub fn expect_update_addon_configuration(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_addon_configuration method
Trait Implementations§
Source§impl AddonsApi for MockAddonsApi
impl AddonsApi for MockAddonsApi
Source§fn get_addon_by_id<'addon_id, 'accept_language, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
accept_language: Option<&'accept_language str>,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<Addon, Error<GetAddonByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'accept_language: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn get_addon_by_id<'addon_id, 'accept_language, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
accept_language: Option<&'accept_language str>,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<Addon, Error<GetAddonByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'accept_language: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
GET /addons/{addonId}
Source§fn get_addon_configuration<'addon_id, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<GetAddonConfigurationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn get_addon_configuration<'addon_id, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<GetAddonConfigurationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
GET /addons/{addonId}/config
Source§fn get_addon_services<'accept_language, 'service_id, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AddonType>, Error<GetAddonServicesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn get_addon_services<'accept_language, 'service_id, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AddonType>, Error<GetAddonServicesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
GET /addons/types
Source§fn get_addon_types<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AddonType>, Error<GetAddonTypesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_addon_types<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AddonType>, Error<GetAddonTypesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /addons/services
Source§fn get_addons<'accept_language, 'service_id, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Addon>, Error<GetAddonsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn get_addons<'accept_language, 'service_id, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Addon>, Error<GetAddonsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
GET /addons
Source§fn get_suggested_addons<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Addon>, Error<GetSuggestedAddonsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_suggested_addons<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Addon>, Error<GetSuggestedAddonsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /addons/suggestions
Source§fn install_addon_by_id<'addon_id, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InstallAddonByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn install_addon_by_id<'addon_id, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InstallAddonByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
POST /addons/{addonId}/install
Source§fn install_addon_from_url<'url, 'life0, 'async_trait>(
&'life0 self,
url: &'url str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InstallAddonFromUrlError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'url: 'async_trait,
'life0: 'async_trait,
fn install_addon_from_url<'url, 'life0, 'async_trait>(
&'life0 self,
url: &'url str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InstallAddonFromUrlError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'url: 'async_trait,
'life0: 'async_trait,
POST /addons/url/{url}/install
Source§fn uninstall_addon<'addon_id, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UninstallAddonError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn uninstall_addon<'addon_id, 'service_id, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UninstallAddonError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
POST /addons/{addonId}/uninstall
Source§fn update_addon_configuration<'addon_id, 'service_id, 'request_body, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<UpdateAddonConfigurationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
fn update_addon_configuration<'addon_id, 'service_id, 'request_body, 'life0, 'async_trait>(
&'life0 self,
addon_id: &'addon_id str,
service_id: Option<&'service_id str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<UpdateAddonConfigurationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'addon_id: 'async_trait,
'service_id: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
PUT /addons/{addonId}/config