pub struct MockWebAuthnApi {
WebAuthnApi_expectations: MockWebAuthnApi_WebAuthnApi,
}Fields§
§WebAuthnApi_expectations: MockWebAuthnApi_WebAuthnApiImplementations§
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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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<WebAuthnCredentialResponseModel, Error>> + 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<WebAuthnCredentialResponseModel, Error>> + 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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /webauthn
Auto Trait Implementations§
impl Freeze for MockWebAuthnApi
impl RefUnwindSafe for MockWebAuthnApi
impl Send for MockWebAuthnApi
impl Sync for MockWebAuthnApi
impl Unpin for MockWebAuthnApi
impl UnsafeUnpin for MockWebAuthnApi
impl UnwindSafe for MockWebAuthnApi
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