pub struct MockPoliciesApi {
PoliciesApi_expectations: MockPoliciesApi_PoliciesApi,
}
Fields§
§PoliciesApi_expectations: MockPoliciesApi_PoliciesApi
Implementations§
Source§impl MockPoliciesApi
impl MockPoliciesApi
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 MockPoliciesApi
impl MockPoliciesApi
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_by_token(&mut self) -> &mut Expectation
pub fn expect_get_by_token(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_by_token
method
Sourcepub fn expect_get_master_password_policy(&mut self) -> &mut Expectation
pub fn expect_get_master_password_policy(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_master_password_policy
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
Sourcepub fn expect_put_v_next(&mut self) -> &mut Expectation
pub fn expect_put_v_next(&mut self) -> &mut Expectation
Create an Expectation
for mocking the put_v_next
method
Trait Implementations§
Source§impl Debug for MockPoliciesApi
impl Debug for MockPoliciesApi
Source§impl Default for MockPoliciesApi
impl Default for MockPoliciesApi
Source§impl PoliciesApi for MockPoliciesApi
impl PoliciesApi for MockPoliciesApi
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: i32,
) -> Pin<Box<dyn Future<Output = Result<PolicyDetailResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: i32,
) -> Pin<Box<dyn Future<Output = Result<PolicyDetailResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies/{type}
Source§fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies
Source§fn get_by_token<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
email: Option<&'a str>,
token: Option<&'a str>,
organization_user_id: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModelListResponseModel, Error<GetByTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_by_token<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
email: Option<&'a str>,
token: Option<&'a str>,
organization_user_id: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModelListResponseModel, Error<GetByTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies/token
Source§fn get_master_password_policy<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error<GetMasterPasswordPolicyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_master_password_policy<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error<GetMasterPasswordPolicyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies/master-password
Source§fn put<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: PolicyType,
policy_request_model: Option<PolicyRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: PolicyType,
policy_request_model: Option<PolicyRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/{orgId}/policies/{type}
Source§fn put_v_next<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: &'a str,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error<PutVNextError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_v_next<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: &'a str,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error<PutVNextError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/{orgId}/policies/{type}/vnext