pub trait PoliciesApi: Send + Sync {
// Required methods
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: PolicyType,
) -> Pin<Box<dyn Future<Output = Result<PolicyStatusResponseModel, Error>> + 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<PolicyStatusResponseModelListResponseModel, Error>> + 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>> + 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>> + 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,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + 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: PolicyType,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: PolicyType,
) -> Pin<Box<dyn Future<Output = Result<PolicyStatusResponseModel, Error>> + 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: PolicyType,
) -> Pin<Box<dyn Future<Output = Result<PolicyStatusResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies/{type}
Sourcefn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<PolicyStatusResponseModelListResponseModel, Error>> + 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<PolicyStatusResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies
Sourcefn 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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies/token
Sourcefn get_master_password_policy<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/policies/master-password
Sourcefn put<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: PolicyType,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + 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,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/{orgId}/policies/{type}
Sourcefn put_v_next<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
type: PolicyType,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + 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: PolicyType,
save_policy_request: Option<SavePolicyRequest>,
) -> Pin<Box<dyn Future<Output = Result<PolicyResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/{orgId}/policies/{type}/vnext