pub struct MockServicesApi { /* private fields */ }services_api only.Implementations§
Source§impl MockServicesApi
impl MockServicesApi
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 MockServicesApi
impl MockServicesApi
Sourcepub fn expect_delete_service_config(&mut self) -> &mut Expectation
pub fn expect_delete_service_config(&mut self) -> &mut Expectation
Create an Expectation for mocking the delete_service_config method
Sourcepub fn expect_get_service_config(&mut self) -> &mut Expectation
pub fn expect_get_service_config(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_service_config method
Sourcepub fn expect_get_service_context(&mut self) -> &mut Expectation
pub fn expect_get_service_context(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_service_context method
Sourcepub fn expect_get_services(&mut self) -> &mut Expectation
pub fn expect_get_services(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_services method
Sourcepub fn expect_get_services_by_id(&mut self) -> &mut Expectation
pub fn expect_get_services_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_services_by_id method
Sourcepub fn expect_update_service_config(&mut self) -> &mut Expectation
pub fn expect_update_service_config(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_service_config method
Trait Implementations§
Source§impl Debug for MockServicesApi
impl Debug for MockServicesApi
Source§impl Default for MockServicesApi
impl Default for MockServicesApi
Source§impl ServicesApi for MockServicesApi
impl ServicesApi for MockServicesApi
Source§fn delete_service_config<'service_id, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
) -> Pin<Box<dyn Future<Output = Result<String, Error<DeleteServiceConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn delete_service_config<'service_id, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
) -> Pin<Box<dyn Future<Output = Result<String, Error<DeleteServiceConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
DELETE /services/{serviceId}/config
Source§fn get_service_config<'service_id, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
) -> Pin<Box<dyn Future<Output = Result<String, Error<GetServiceConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
fn get_service_config<'service_id, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
) -> Pin<Box<dyn Future<Output = Result<String, Error<GetServiceConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'life0: 'async_trait,
GET /services/{serviceId}/config
Source§fn get_service_context<'service_id, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigurableServiceDto>, Error<GetServiceContextError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_service_context<'service_id, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigurableServiceDto>, Error<GetServiceContextError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /services/{serviceId}/contexts
Source§fn get_services<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigurableServiceDto>, Error<GetServicesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_services<'accept_language, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigurableServiceDto>, Error<GetServicesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /services
Source§fn get_services_by_id<'service_id, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<ConfigurableServiceDto, Error<GetServicesByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_services_by_id<'service_id, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<ConfigurableServiceDto, Error<GetServicesByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /services/{serviceId}
Source§fn update_service_config<'service_id, 'accept_language, 'request_body, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
accept_language: Option<&'accept_language str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<UpdateServiceConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'accept_language: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
fn update_service_config<'service_id, 'accept_language, 'request_body, 'life0, 'async_trait>(
&'life0 self,
service_id: &'service_id str,
accept_language: Option<&'accept_language str>,
request_body: Option<HashMap<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error<UpdateServiceConfigError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'service_id: 'async_trait,
'accept_language: 'async_trait,
'request_body: 'async_trait,
'life0: 'async_trait,
PUT /services/{serviceId}/config