bitwarden_policies/policies/two_factor_authentication.rs
1use crate::{Policy, PolicyType, policy_type::PolicyDataType};
2
3/// Two-factor Authentication policy.
4pub struct TwoFactorAuthenticationPolicy;
5
6impl Policy for TwoFactorAuthenticationPolicy {
7 type Data = ();
8
9 fn policy_type(&self) -> PolicyType {
10 PolicyType::TwoFactorAuthentication
11 }
12
13 fn to_erased(&self, _data: Self::Data) -> PolicyDataType {
14 PolicyDataType::TwoFactorAuthentication
15 }
16}