pub struct MockWebAuthnApi {
WebAuthnApi_expectations: MockWebAuthnApi_WebAuthnApi,
}
Fields§
§WebAuthnApi_expectations: MockWebAuthnApi_WebAuthnApi
Implementations§
Source§impl MockWebAuthnApi
impl MockWebAuthnApi
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 MockWebAuthnApi
impl MockWebAuthnApi
Sourcepub fn expect_assertion_options(&mut self) -> &mut Expectation
pub fn expect_assertion_options(&mut self) -> &mut Expectation
Create an Expectation
for mocking the assertion_options
method
Sourcepub fn expect_attestation_options(&mut self) -> &mut Expectation
pub fn expect_attestation_options(&mut self) -> &mut Expectation
Create an Expectation
for mocking the attestation_options
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_post(&mut self) -> &mut Expectation
pub fn expect_post(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post
method
Sourcepub fn expect_update_credential(&mut self) -> &mut Expectation
pub fn expect_update_credential(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update_credential
method
Trait Implementations§
Source§impl Debug for MockWebAuthnApi
impl Debug for MockWebAuthnApi
Source§impl Default for MockWebAuthnApi
impl Default for MockWebAuthnApi
Source§impl WebAuthnApi for MockWebAuthnApi
impl WebAuthnApi for MockWebAuthnApi
Source§fn assertion_options<'a, 'life0, 'async_trait>(
&'life0 self,
secret_verification_request_model: Option<SecretVerificationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnLoginAssertionOptionsResponseModel, Error<AssertionOptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn assertion_options<'a, 'life0, 'async_trait>(
&'life0 self,
secret_verification_request_model: Option<SecretVerificationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnLoginAssertionOptionsResponseModel, Error<AssertionOptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /webauthn/assertion-options
Source§fn attestation_options<'a, 'life0, 'async_trait>(
&'life0 self,
secret_verification_request_model: Option<SecretVerificationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnCredentialCreateOptionsResponseModel, Error<AttestationOptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn attestation_options<'a, 'life0, 'async_trait>(
&'life0 self,
secret_verification_request_model: Option<SecretVerificationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnCredentialCreateOptionsResponseModel, Error<AttestationOptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /webauthn/attestation-options
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
secret_verification_request_model: Option<SecretVerificationRequestModel>,
) -> 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,
secret_verification_request_model: Option<SecretVerificationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /webauthn/{id}/delete
Source§fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnCredentialResponseModelListResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WebAuthnCredentialResponseModelListResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /webauthn
Source§fn post<'a, 'life0, 'async_trait>(
&'life0 self,
web_authn_login_credential_create_request_model: Option<WebAuthnLoginCredentialCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
web_authn_login_credential_create_request_model: Option<WebAuthnLoginCredentialCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /webauthn
Source§fn update_credential<'a, 'life0, 'async_trait>(
&'life0 self,
web_authn_login_credential_update_request_model: Option<WebAuthnLoginCredentialUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateCredentialError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_credential<'a, 'life0, 'async_trait>(
&'life0 self,
web_authn_login_credential_update_request_model: Option<WebAuthnLoginCredentialUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateCredentialError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /webauthn