pub struct MockProviderClientsApi {
ProviderClientsApi_expectations: MockProviderClientsApi_ProviderClientsApi,
}
Fields§
§ProviderClientsApi_expectations: MockProviderClientsApi_ProviderClientsApi
Implementations§
Source§impl MockProviderClientsApi
impl MockProviderClientsApi
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 MockProviderClientsApi
impl MockProviderClientsApi
Sourcepub fn expect_add_existing_organization(&mut self) -> &mut Expectation
pub fn expect_add_existing_organization(&mut self) -> &mut Expectation
Create an Expectation
for mocking the add_existing_organization
method
Sourcepub fn expect_create(&mut self) -> &mut Expectation
pub fn expect_create(&mut self) -> &mut Expectation
Create an Expectation
for mocking the create
method
Sourcepub fn expect_get_addable_organizations(&mut self) -> &mut Expectation
pub fn expect_get_addable_organizations(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_addable_organizations
method
Sourcepub fn expect_update(&mut self) -> &mut Expectation
pub fn expect_update(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update
method
Trait Implementations§
Source§impl Debug for MockProviderClientsApi
impl Debug for MockProviderClientsApi
Source§impl Default for MockProviderClientsApi
impl Default for MockProviderClientsApi
Source§impl ProviderClientsApi for MockProviderClientsApi
impl ProviderClientsApi for MockProviderClientsApi
Source§fn add_existing_organization<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
add_existing_organization_request_body: Option<AddExistingOrganizationRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddExistingOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn add_existing_organization<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
add_existing_organization_request_body: Option<AddExistingOrganizationRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddExistingOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/clients/existing
Source§fn create<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
create_client_organization_request_body: Option<CreateClientOrganizationRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
create_client_organization_request_body: Option<CreateClientOrganizationRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/clients
Source§fn get_addable_organizations<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetAddableOrganizationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_addable_organizations<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetAddableOrganizationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/clients/addable
Source§fn update<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_organization_id: Uuid,
update_client_organization_request_body: Option<UpdateClientOrganizationRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
provider_organization_id: Uuid,
update_client_organization_request_body: Option<UpdateClientOrganizationRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /providers/{providerId}/clients/{providerOrganizationId}