pub struct MockOrganizationAuthRequestsApi {
OrganizationAuthRequestsApi_expectations: MockOrganizationAuthRequestsApi_OrganizationAuthRequestsApi,
}Fields§
§OrganizationAuthRequestsApi_expectations: MockOrganizationAuthRequestsApi_OrganizationAuthRequestsApiImplementations§
Source§impl MockOrganizationAuthRequestsApi
impl MockOrganizationAuthRequestsApi
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 MockOrganizationAuthRequestsApi
impl MockOrganizationAuthRequestsApi
Sourcepub fn expect_bulk_deny_requests(&mut self) -> &mut Expectation
pub fn expect_bulk_deny_requests(&mut self) -> &mut Expectation
Create an Expectation for mocking the bulk_deny_requests method
Sourcepub fn expect_get_pending_requests(&mut self) -> &mut Expectation
pub fn expect_get_pending_requests(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_pending_requests method
Sourcepub fn expect_update_auth_request(&mut self) -> &mut Expectation
pub fn expect_update_auth_request(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_auth_request method
Sourcepub fn expect_update_many_auth_requests(&mut self) -> &mut Expectation
pub fn expect_update_many_auth_requests(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_many_auth_requests method
Trait Implementations§
Source§impl OrganizationAuthRequestsApi for MockOrganizationAuthRequestsApi
impl OrganizationAuthRequestsApi for MockOrganizationAuthRequestsApi
Source§fn bulk_deny_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
bulk_deny_admin_auth_request_request_model: Option<BulkDenyAdminAuthRequestRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_deny_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
bulk_deny_admin_auth_request_request_model: Option<BulkDenyAdminAuthRequestRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/auth-requests/deny
Source§fn get_pending_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PendingOrganizationAuthRequestResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_pending_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PendingOrganizationAuthRequestResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/auth-requests
Source§fn update_auth_request<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
request_id: Uuid,
admin_auth_request_update_request_model: Option<AdminAuthRequestUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_auth_request<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
request_id: Uuid,
admin_auth_request_update_request_model: Option<AdminAuthRequestUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/auth-requests/{requestId}
Source§fn update_many_auth_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
organization_auth_request_update_many_request_model: Option<Vec<OrganizationAuthRequestUpdateManyRequestModel>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_many_auth_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
organization_auth_request_update_many_request_model: Option<Vec<OrganizationAuthRequestUpdateManyRequestModel>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/auth-requests
Auto Trait Implementations§
impl Freeze for MockOrganizationAuthRequestsApi
impl RefUnwindSafe for MockOrganizationAuthRequestsApi
impl Send for MockOrganizationAuthRequestsApi
impl Sync for MockOrganizationAuthRequestsApi
impl Unpin for MockOrganizationAuthRequestsApi
impl UnsafeUnpin for MockOrganizationAuthRequestsApi
impl UnwindSafe for MockOrganizationAuthRequestsApi
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