pub struct MockAccountsApi {
AccountsApi_expectations: MockAccountsApi_AccountsApi,
}
Fields§
§AccountsApi_expectations: MockAccountsApi_AccountsApi
Implementations§
Source§impl MockAccountsApi
impl MockAccountsApi
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 MockAccountsApi
impl MockAccountsApi
Sourcepub fn expect_get_web_authn_login_assertion_options(
&mut self,
) -> &mut Expectation
pub fn expect_get_web_authn_login_assertion_options( &mut self, ) -> &mut Expectation
Create an Expectation
for mocking the get_web_authn_login_assertion_options
method
Sourcepub fn expect_post_prelogin(&mut self) -> &mut Expectation
pub fn expect_post_prelogin(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post_prelogin
method
Sourcepub fn expect_post_register_finish(&mut self) -> &mut Expectation
pub fn expect_post_register_finish(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post_register_finish
method
Sourcepub fn expect_post_register_send_verification_email(
&mut self,
) -> &mut Expectation
pub fn expect_post_register_send_verification_email( &mut self, ) -> &mut Expectation
Create an Expectation
for mocking the post_register_send_verification_email
method
Sourcepub fn expect_post_register_verification_email_clicked(
&mut self,
) -> &mut Expectation
pub fn expect_post_register_verification_email_clicked( &mut self, ) -> &mut Expectation
Create an Expectation
for mocking the post_register_verification_email_clicked
method
Sourcepub fn expect_post_trial_initiation_send_verification_email(
&mut self,
) -> &mut Expectation
pub fn expect_post_trial_initiation_send_verification_email( &mut self, ) -> &mut Expectation
Create an Expectation
for mocking the post_trial_initiation_send_verification_email
method
Trait Implementations§
Source§impl AccountsApi for MockAccountsApi
impl AccountsApi for MockAccountsApi
Source§fn get_web_authn_login_assertion_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnLoginAssertionOptionsResponseModel, Error<GetWebAuthnLoginAssertionOptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_web_authn_login_assertion_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnLoginAssertionOptionsResponseModel, Error<GetWebAuthnLoginAssertionOptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /accounts/webauthn/assertion-options
Source§fn post_prelogin<'a, 'life0, 'async_trait>(
&'life0 self,
prelogin_request_model: Option<PreloginRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<PreloginResponseModel, Error<PostPreloginError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_prelogin<'a, 'life0, 'async_trait>(
&'life0 self,
prelogin_request_model: Option<PreloginRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<PreloginResponseModel, Error<PostPreloginError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/prelogin
Source§fn post_register_finish<'a, 'life0, 'async_trait>(
&'life0 self,
register_finish_request_model: Option<RegisterFinishRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<RegisterFinishResponseModel, Error<PostRegisterFinishError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_register_finish<'a, 'life0, 'async_trait>(
&'life0 self,
register_finish_request_model: Option<RegisterFinishRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<RegisterFinishResponseModel, Error<PostRegisterFinishError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/register/finish
Source§fn post_register_send_verification_email<'a, 'life0, 'async_trait>(
&'life0 self,
register_send_verification_email_request_model: Option<RegisterSendVerificationEmailRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostRegisterSendVerificationEmailError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_register_send_verification_email<'a, 'life0, 'async_trait>(
&'life0 self,
register_send_verification_email_request_model: Option<RegisterSendVerificationEmailRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostRegisterSendVerificationEmailError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/register/send-verification-email
Source§fn post_register_verification_email_clicked<'a, 'life0, 'async_trait>(
&'life0 self,
register_verification_email_clicked_request_model: Option<RegisterVerificationEmailClickedRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostRegisterVerificationEmailClickedError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_register_verification_email_clicked<'a, 'life0, 'async_trait>(
&'life0 self,
register_verification_email_clicked_request_model: Option<RegisterVerificationEmailClickedRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostRegisterVerificationEmailClickedError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/register/verification-email-clicked
Source§fn post_trial_initiation_send_verification_email<'a, 'life0, 'async_trait>(
&'life0 self,
trial_send_verification_email_request_model: Option<TrialSendVerificationEmailRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostTrialInitiationSendVerificationEmailError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_trial_initiation_send_verification_email<'a, 'life0, 'async_trait>(
&'life0 self,
trial_send_verification_email_request_model: Option<TrialSendVerificationEmailRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostTrialInitiationSendVerificationEmailError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/trial/send-verification-email