Skip to main content

bitwarden_policies/policies/
disable_send.rs

1use crate::{Policy, PolicyType, policy_type::PolicyDataType};
2
3/// Disable Send policy.
4pub struct DisableSendPolicy;
5
6impl Policy for DisableSendPolicy {
7    type Data = ();
8
9    fn policy_type(&self) -> PolicyType {
10        PolicyType::DisableSend
11    }
12
13    fn to_erased(&self, _data: Self::Data) -> PolicyDataType {
14        PolicyDataType::DisableSend
15    }
16}