pub struct MockAuthRequestsApi {
AuthRequestsApi_expectations: MockAuthRequestsApi_AuthRequestsApi,
}Fields§
§AuthRequestsApi_expectations: MockAuthRequestsApi_AuthRequestsApiImplementations§
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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /auth-requests/{id}
Source§impl Debug for MockAuthRequestsApi
impl Debug for MockAuthRequestsApi
Auto Trait Implementations§
impl Freeze for MockAuthRequestsApi
impl RefUnwindSafe for MockAuthRequestsApi
impl Send for MockAuthRequestsApi
impl Sync for MockAuthRequestsApi
impl Unpin for MockAuthRequestsApi
impl UnsafeUnpin for MockAuthRequestsApi
impl UnwindSafe for MockAuthRequestsApi
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