#[repr(u8)]pub enum PolicyType {
Show 20 variants
TwoFactorAuthentication = 0,
MasterPassword = 1,
PasswordGenerator = 2,
SingleOrg = 3,
RequireSso = 4,
PersonalOwnership = 5,
DisableSend = 6,
SendOptions = 7,
ResetPassword = 8,
MaximumVaultTimeout = 9,
DisablePersonalVaultExport = 10,
ActivateAutofill = 11,
AutomaticAppLogIn = 12,
FreeFamiliesSponsorshipPolicy = 13,
RemoveUnlockWithPin = 14,
RestrictedItemTypesPolicy = 15,
UriMatchDefaults = 16,
AutotypeDefaultSetting = 17,
AutomaticUserConfirmation = 18,
BlockClaimedDomainAccountCreation = 19,
}Variants§
TwoFactorAuthentication = 0
Requires users to have 2fa enabled
MasterPassword = 1
Sets minimum requirements for master password complexity
PasswordGenerator = 2
Sets minimum requirements/default type for generated passwords/passphrases
SingleOrg = 3
Allows users to only be apart of one organization
RequireSso = 4
Requires users to authenticate with SSO
PersonalOwnership = 5
Disables personal vault ownership for adding/cloning items
DisableSend = 6
Disables the ability to create and edit Bitwarden Sends
SendOptions = 7
Sets restrictions or defaults for Bitwarden Sends
ResetPassword = 8
Allows orgs to use reset password : also can enable auto-enrollment during invite flow
MaximumVaultTimeout = 9
Sets the maximum allowed vault timeout
DisablePersonalVaultExport = 10
Disable personal vault export
ActivateAutofill = 11
Activates autofill with page load on the browser extension
AutomaticAppLogIn = 12
FreeFamiliesSponsorshipPolicy = 13
RemoveUnlockWithPin = 14
RestrictedItemTypesPolicy = 15
UriMatchDefaults = 16
AutotypeDefaultSetting = 17
AutomaticUserConfirmation = 18
BlockClaimedDomainAccountCreation = 19
Trait Implementations§
Source§impl Debug for PolicyType
impl Debug for PolicyType
Source§impl<'de> Deserialize<'de> for PolicyType
impl<'de> Deserialize<'de> for PolicyType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PolicyType> for PolicyType
impl From<PolicyType> for PolicyType
Auto Trait Implementations§
impl Freeze for PolicyType
impl RefUnwindSafe for PolicyType
impl Send for PolicyType
impl Sync for PolicyType
impl Unpin for PolicyType
impl UnwindSafe for PolicyType
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more