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