pub struct MockAuthRequestsApi {
AuthRequestsApi_expectations: MockAuthRequestsApi_AuthRequestsApi,
}
Fields§
§AuthRequestsApi_expectations: MockAuthRequestsApi_AuthRequestsApi
Implementations§
Source§impl MockAuthRequestsApi
impl MockAuthRequestsApi
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 MockAuthRequestsApi
impl MockAuthRequestsApi
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_get_all(&mut self) -> &mut Expectation
pub fn expect_get_all(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_all
method
Sourcepub fn expect_get_pending_auth_requests(&mut self) -> &mut Expectation
pub fn expect_get_pending_auth_requests(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_pending_auth_requests
method
Sourcepub fn expect_get_response(&mut self) -> &mut Expectation
pub fn expect_get_response(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_response
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_post_admin_request(&mut self) -> &mut Expectation
pub fn expect_post_admin_request(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post_admin_request
method
Sourcepub fn expect_put(&mut self) -> &mut Expectation
pub fn expect_put(&mut self) -> &mut Expectation
Create an Expectation
for mocking the put
method
Trait Implementations§
Source§impl AuthRequestsApi for MockAuthRequestsApi
impl AuthRequestsApi for MockAuthRequestsApi
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /auth-requests/{id}
Source§fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /auth-requests
Source§fn get_pending_auth_requests<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PendingAuthRequestResponseModelListResponseModel, Error<GetPendingAuthRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_auth_requests<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PendingAuthRequestResponseModelListResponseModel, Error<GetPendingAuthRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /auth-requests/pending
Source§fn get_response<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
code: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<GetResponseError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_response<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
code: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<GetResponseError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /auth-requests/{id}/response
Source§fn post<'a, 'life0, 'async_trait>(
&'life0 self,
auth_request_create_request_model: Option<AuthRequestCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
auth_request_create_request_model: Option<AuthRequestCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /auth-requests
Source§fn post_admin_request<'a, 'life0, 'async_trait>(
&'life0 self,
auth_request_create_request_model: Option<AuthRequestCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<PostAdminRequestError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_admin_request<'a, 'life0, 'async_trait>(
&'life0 self,
auth_request_create_request_model: Option<AuthRequestCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<PostAdminRequestError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /auth-requests/admin-request
Source§fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
auth_request_update_request_model: Option<AuthRequestUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
auth_request_update_request_model: Option<AuthRequestUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AuthRequestResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /auth-requests/{id}