pub struct MockProvidersApi {
ProvidersApi_expectations: MockProvidersApi_ProvidersApi,
}
Fields§
§ProvidersApi_expectations: MockProvidersApi_ProvidersApi
Implementations§
Source§impl MockProvidersApi
impl MockProvidersApi
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 MockProvidersApi
impl MockProvidersApi
Sourcepub fn expect_delete(&mut self) -> &mut Expectation
pub fn expect_delete(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete
method
Sourcepub fn expect_get(&mut self) -> &mut Expectation
pub fn expect_get(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get
method
Sourcepub fn expect_post_delete_recover_token(&mut self) -> &mut Expectation
pub fn expect_post_delete_recover_token(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post_delete_recover_token
method
Sourcepub fn expect_put(&mut self) -> &mut Expectation
pub fn expect_put(&mut self) -> &mut Expectation
Create an Expectation
for mocking the put
method
Sourcepub fn expect_setup(&mut self) -> &mut Expectation
pub fn expect_setup(&mut self) -> &mut Expectation
Create an Expectation
for mocking the setup
method
Trait Implementations§
Source§impl Debug for MockProvidersApi
impl Debug for MockProvidersApi
Source§impl Default for MockProvidersApi
impl Default for MockProvidersApi
Source§impl ProvidersApi for MockProvidersApi
impl ProvidersApi for MockProvidersApi
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /providers/{id}
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{id}
Source§fn post_delete_recover_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_verify_delete_recover_request_model: Option<ProviderVerifyDeleteRecoverRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostDeleteRecoverTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_delete_recover_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_verify_delete_recover_request_model: Option<ProviderVerifyDeleteRecoverRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostDeleteRecoverTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{id}/delete-recover-token
Source§fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_update_request_model: Option<ProviderUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_update_request_model: Option<ProviderUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /providers/{id}
Source§fn setup<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_setup_request_model: Option<ProviderSetupRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<SetupError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn setup<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_setup_request_model: Option<ProviderSetupRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<SetupError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{id}/setup