pub struct MockAccountsApi {
AccountsApi_expectations: MockAccountsApi_AccountsApi,
}Fields§
§AccountsApi_expectations: MockAccountsApi_AccountsApiImplementations§
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_password_prelogin(&mut self) -> &mut Expectation
pub fn expect_post_password_prelogin(&mut self) -> &mut Expectation
Create an Expectation for mocking the post_password_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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /accounts/webauthn/assertion-options
Source§fn post_password_prelogin<'a, 'life0, 'async_trait>(
&'life0 self,
password_prelogin_request_model: Option<PasswordPreloginRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<PasswordPreloginResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_password_prelogin<'a, 'life0, 'async_trait>(
&'life0 self,
password_prelogin_request_model: Option<PasswordPreloginRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<PasswordPreloginResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/prelogin/password
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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /accounts/trial/send-verification-email
Source§impl Debug for MockAccountsApi
impl Debug for MockAccountsApi
Auto Trait Implementations§
impl Freeze for MockAccountsApi
impl RefUnwindSafe for MockAccountsApi
impl Send for MockAccountsApi
impl Sync for MockAccountsApi
impl Unpin for MockAccountsApi
impl UnsafeUnpin for MockAccountsApi
impl UnwindSafe for MockAccountsApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more