pub struct MockProviderUsersApi {
ProviderUsersApi_expectations: MockProviderUsersApi_ProviderUsersApi,
}
Fields§
§ProviderUsersApi_expectations: MockProviderUsersApi_ProviderUsersApi
Implementations§
Source§impl MockProviderUsersApi
impl MockProviderUsersApi
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 MockProviderUsersApi
impl MockProviderUsersApi
Sourcepub fn expect_accept(&mut self) -> &mut Expectation
pub fn expect_accept(&mut self) -> &mut Expectation
Create an Expectation
for mocking the accept
method
Sourcepub fn expect_bulk_confirm(&mut self) -> &mut Expectation
pub fn expect_bulk_confirm(&mut self) -> &mut Expectation
Create an Expectation
for mocking the bulk_confirm
method
Sourcepub fn expect_bulk_delete(&mut self) -> &mut Expectation
pub fn expect_bulk_delete(&mut self) -> &mut Expectation
Create an Expectation
for mocking the bulk_delete
method
Sourcepub fn expect_bulk_reinvite(&mut self) -> &mut Expectation
pub fn expect_bulk_reinvite(&mut self) -> &mut Expectation
Create an Expectation
for mocking the bulk_reinvite
method
Sourcepub fn expect_confirm(&mut self) -> &mut Expectation
pub fn expect_confirm(&mut self) -> &mut Expectation
Create an Expectation
for mocking the confirm
method
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_get_all(&mut self) -> &mut Expectation
pub fn expect_get_all(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_all
method
Sourcepub fn expect_invite(&mut self) -> &mut Expectation
pub fn expect_invite(&mut self) -> &mut Expectation
Create an Expectation
for mocking the invite
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_reinvite(&mut self) -> &mut Expectation
pub fn expect_reinvite(&mut self) -> &mut Expectation
Create an Expectation
for mocking the reinvite
method
Sourcepub fn expect_user_public_keys(&mut self) -> &mut Expectation
pub fn expect_user_public_keys(&mut self) -> &mut Expectation
Create an Expectation
for mocking the user_public_keys
method
Trait Implementations§
Source§impl Debug for MockProviderUsersApi
impl Debug for MockProviderUsersApi
Source§impl Default for MockProviderUsersApi
impl Default for MockProviderUsersApi
Source§impl ProviderUsersApi for MockProviderUsersApi
impl ProviderUsersApi for MockProviderUsersApi
Source§fn accept<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
provider_user_accept_request_model: Option<ProviderUserAcceptRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AcceptError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn accept<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
provider_user_accept_request_model: Option<ProviderUserAcceptRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AcceptError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/{id}/accept
Source§fn bulk_confirm<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_confirm_request_model: Option<ProviderUserBulkConfirmRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserBulkResponseModelListResponseModel, Error<BulkConfirmError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_confirm<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_confirm_request_model: Option<ProviderUserBulkConfirmRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserBulkResponseModelListResponseModel, Error<BulkConfirmError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/confirm
Source§fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_request_model: Option<ProviderUserBulkRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserBulkResponseModelListResponseModel, Error<BulkDeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_request_model: Option<ProviderUserBulkRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserBulkResponseModelListResponseModel, Error<BulkDeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /providers/{providerId}/users
Source§fn bulk_reinvite<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_request_model: Option<ProviderUserBulkRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserBulkResponseModelListResponseModel, Error<BulkReinviteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_reinvite<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_request_model: Option<ProviderUserBulkRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserBulkResponseModelListResponseModel, Error<BulkReinviteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/reinvite
Source§fn confirm<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
provider_user_confirm_request_model: Option<ProviderUserConfirmRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ConfirmError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn confirm<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
provider_user_confirm_request_model: Option<ProviderUserConfirmRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ConfirmError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/{id}/confirm
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
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,
provider_id: Uuid,
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/{providerId}/users/{id}
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/users/{id}
Source§fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserUserDetailsResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserUserDetailsResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/users
Source§fn invite<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_invite_request_model: Option<ProviderUserInviteRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InviteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn invite<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_invite_request_model: Option<ProviderUserInviteRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<InviteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/invite
Source§fn put<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
provider_user_update_request_model: Option<ProviderUserUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
provider_user_update_request_model: Option<ProviderUserUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /providers/{providerId}/users/{id}
Source§fn reinvite<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ReinviteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn reinvite<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ReinviteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/{id}/reinvite
Source§fn user_public_keys<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_request_model: Option<ProviderUserBulkRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserPublicKeyResponseModelListResponseModel, Error<UserPublicKeysError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn user_public_keys<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_user_bulk_request_model: Option<ProviderUserBulkRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderUserPublicKeyResponseModelListResponseModel, Error<UserPublicKeysError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/users/public-keys