bitwarden_policies/policies/
restricted_item_types.rs1use bitwarden_organizations::OrganizationUserType;
2
3use crate::{Policy, PolicyType, policy_type::PolicyDataType};
4
5pub struct RestrictedItemTypesPolicy;
7
8impl Policy for RestrictedItemTypesPolicy {
9 type Data = ();
10
11 fn policy_type(&self) -> PolicyType {
12 PolicyType::RestrictedItemTypes
13 }
14
15 fn to_erased(&self, _data: Self::Data) -> PolicyDataType {
16 PolicyDataType::RestrictedItemTypes
17 }
18
19 fn exempt_roles(&self) -> &[OrganizationUserType] {
20 &[]
21 }
22}