#[repr(u8)]pub enum PolicyType {
Show 22 variants
TwoFactorAuthentication = 0,
MasterPassword = 1,
PasswordGenerator = 2,
SingleOrg = 3,
RequireSso = 4,
OrganizationDataOwnership = 5,
DisableSend = 6,
SendOptions = 7,
ResetPassword = 8,
MaximumVaultTimeout = 9,
DisablePersonalVaultExport = 10,
ActivateAutofill = 11,
AutomaticAppLogIn = 12,
FreeFamiliesSponsorship = 13,
RemoveUnlockWithPin = 14,
RestrictedItemTypes = 15,
UriMatchDefaults = 16,
AutotypeDefaultSetting = 17,
AutomaticUserConfirmation = 18,
BlockClaimedDomainAccountCreation = 19,
OrganizationUserNotification = 20,
SendControls = 21,
}Expand description
The type of an organization policy.
The integer value matches the server’s wire format.
Variants§
TwoFactorAuthentication = 0
Requires members to have two-step login enabled on their account.
MasterPassword = 1
Sets minimum requirements for members’ master passwords.
PasswordGenerator = 2
Sets minimum requirements for the password generator.
SingleOrg = 3
Restricts members to being part of a single organization.
RequireSso = 4
Requires members to authenticate with single sign-on.
OrganizationDataOwnership = 5
Forces newly added or cloned items to be owned by the organization rather than the member’s personal vault. Also enables My Items functionality.
DisableSend = 6
Disables the ability to create and edit Bitwarden Sends.
Superseded by SendControls when the
pm-31885-send-controls feature flag is active.
SendOptions = 7
Sets restrictions or defaults for Bitwarden Sends.
Superseded by SendControls when the
pm-31885-send-controls feature flag is active.
ResetPassword = 8
Allows administrators to recover member accounts.
MaximumVaultTimeout = 9
Sets the maximum allowed vault timeout for members.
DisablePersonalVaultExport = 10
Disables members’ ability to export their personal vault.
ActivateAutofill = 11
Activates autofill on page load in the browser extension.
AutomaticAppLogIn = 12
Automatically logs members into apps using single sign-on.
FreeFamiliesSponsorship = 13
Removes members’ access to the free Bitwarden Families sponsorship benefit.
RemoveUnlockWithPin = 14
Prevents members from unlocking the app with a PIN.
RestrictedItemTypes = 15
Restricts the item types that members can create.
UriMatchDefaults = 16
Sets the default URI match detection strategy for autofill.
AutotypeDefaultSetting = 17
Sets the default behavior for the autotype feature.
AutomaticUserConfirmation = 18
Automatically confirms invited users into the organization.
BlockClaimedDomainAccountCreation = 19
Blocks account creation for users with email addresses on claimed domains.
OrganizationUserNotification = 20
Displays an organization-configured banner message to members in their vault.
SendControls = 21
Configures Send-related behavior: disabling Sends, email visibility, access controls, Send types, and deletion.
Supersedes DisableSend and SendOptions when
the pm-31885-send-controls feature flag is active on the server.
Trait Implementations§
Source§impl Clone for PolicyType
impl Clone for PolicyType
Source§fn clone(&self) -> PolicyType
fn clone(&self) -> PolicyType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for PolicyType
impl<UT> ConvertError<UT> for PolicyType
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
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>,
Source§impl<UT> FfiConverter<UT> for PolicyType
impl<UT> FfiConverter<UT> for PolicyType
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<PolicyType> for JsValue
impl From<PolicyType> for JsValue
Source§fn from(value: PolicyType) -> Self
fn from(value: PolicyType) -> Self
Source§impl FromWasmAbi for PolicyType
impl FromWasmAbi for PolicyType
Source§impl Hash for PolicyType
impl Hash for PolicyType
Source§impl IntoWasmAbi for PolicyType
impl IntoWasmAbi for PolicyType
Source§impl<UT> Lift<UT> for PolicyType
impl<UT> Lift<UT> for PolicyType
Source§impl<UT> LiftRef<UT> for PolicyType
impl<UT> LiftRef<UT> for PolicyType
type LiftType = PolicyType
Source§impl<UT> LiftReturn<UT> for PolicyType
impl<UT> LiftReturn<UT> for PolicyType
Source§type ReturnType = <PolicyType as Lift<UT>>::FfiType
type ReturnType = <PolicyType as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for PolicyType
impl<UT> Lower<UT> for PolicyType
Source§impl<UT> LowerError<UT> for PolicyType
impl<UT> LowerError<UT> for PolicyType
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for PolicyType
impl<UT> LowerReturn<UT> for PolicyType
Source§type ReturnType = <PolicyType as Lower<UT>>::FfiType
type ReturnType = <PolicyType as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl OptionFromWasmAbi for PolicyType
impl OptionFromWasmAbi for PolicyType
Source§impl OptionIntoWasmAbi for PolicyType
impl OptionIntoWasmAbi for PolicyType
Source§impl PartialEq for PolicyType
impl PartialEq for PolicyType
Source§impl Serialize for PolicyType
impl Serialize for PolicyType
Source§impl TryFromJsValue for PolicyType
impl TryFromJsValue for PolicyType
Source§impl<UT> TypeId<UT> for PolicyType
impl<UT> TypeId<UT> for PolicyType
const TYPE_ID_META: MetadataBuffer
Source§impl VectorFromWasmAbi for PolicyType
impl VectorFromWasmAbi for PolicyType
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PolicyType]>
Source§impl VectorIntoWasmAbi for PolicyType
impl VectorIntoWasmAbi for PolicyType
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PolicyType]>) -> Self::Abi
Source§impl WasmDescribe for PolicyType
impl WasmDescribe for PolicyType
Source§impl WasmDescribeVector for PolicyType
impl WasmDescribeVector for PolicyType
impl Copy for PolicyType
impl Eq for PolicyType
impl StructuralPartialEq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.