pub struct MasterPasswordPolicyResponse {
pub min_complexity: Option<i32>,
pub min_length: Option<i32>,
pub require_lower: Option<bool>,
pub require_upper: Option<bool>,
pub require_numbers: Option<bool>,
pub require_special: Option<bool>,
pub enforce_on_login: Option<bool>,
}Expand description
SDK domain model for master password policy requirements. Defines the complexity requirements for a user’s master password when enforced by an organization policy.
Fields§
§min_complexity: Option<i32>The minimum complexity score required for the master password. Complexity is calculated based on password strength metrics.
min_length: Option<i32>The minimum length required for the master password.
require_lower: Option<bool>Whether the master password must contain at least one lowercase letter.
require_upper: Option<bool>Whether the master password must contain at least one uppercase letter.
require_numbers: Option<bool>Whether the master password must contain at least one numeric digit.
require_special: Option<bool>Whether the master password must contain at least one special character.
enforce_on_login: Option<bool>Whether this policy should be enforced when the user logs in. If true, the user will be required to update their master password if it doesn’t meet the policy requirements.
Trait Implementations§
Source§impl Clone for MasterPasswordPolicyResponse
impl Clone for MasterPasswordPolicyResponse
Source§fn clone(&self) -> MasterPasswordPolicyResponse
fn clone(&self) -> MasterPasswordPolicyResponse
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 MasterPasswordPolicyResponse
impl<UT> ConvertError<UT> for MasterPasswordPolicyResponse
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for MasterPasswordPolicyResponse
impl Debug for MasterPasswordPolicyResponse
Source§impl<'de> Deserialize<'de> for MasterPasswordPolicyResponse
impl<'de> Deserialize<'de> for MasterPasswordPolicyResponse
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 MasterPasswordPolicyResponse
impl<UT> FfiConverter<UT> for MasterPasswordPolicyResponse
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<MasterPasswordPolicyResponse> for JsValue
impl From<MasterPasswordPolicyResponse> for JsValue
Source§fn from(value: MasterPasswordPolicyResponse) -> Self
fn from(value: MasterPasswordPolicyResponse) -> Self
Source§impl From<MasterPasswordPolicyResponseModel> for MasterPasswordPolicyResponse
impl From<MasterPasswordPolicyResponseModel> for MasterPasswordPolicyResponse
Source§impl FromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
impl FromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
Source§impl<UT> Lift<UT> for MasterPasswordPolicyResponse
impl<UT> Lift<UT> for MasterPasswordPolicyResponse
Source§impl<UT> LiftRef<UT> for MasterPasswordPolicyResponse
impl<UT> LiftRef<UT> for MasterPasswordPolicyResponse
Source§impl<UT> LiftReturn<UT> for MasterPasswordPolicyResponse
impl<UT> LiftReturn<UT> for MasterPasswordPolicyResponse
Source§type ReturnType = <MasterPasswordPolicyResponse as Lift<UT>>::FfiType
type ReturnType = <MasterPasswordPolicyResponse 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 MasterPasswordPolicyResponse
impl<UT> Lower<UT> for MasterPasswordPolicyResponse
Source§impl<UT> LowerError<UT> for MasterPasswordPolicyResponse
impl<UT> LowerError<UT> for MasterPasswordPolicyResponse
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for MasterPasswordPolicyResponse
impl<UT> LowerReturn<UT> for MasterPasswordPolicyResponse
Source§type ReturnType = <MasterPasswordPolicyResponse as Lower<UT>>::FfiType
type ReturnType = <MasterPasswordPolicyResponse 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 MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
Source§impl PartialEq for MasterPasswordPolicyResponse
impl PartialEq for MasterPasswordPolicyResponse
Source§fn eq(&self, other: &MasterPasswordPolicyResponse) -> bool
fn eq(&self, other: &MasterPasswordPolicyResponse) -> bool
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<MasterPasswordPolicyResponse>
type Anchor = SelfOwner<MasterPasswordPolicyResponse>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Tsify for MasterPasswordPolicyResponse
impl Tsify for MasterPasswordPolicyResponse
const DECL: &'static str = "/**\n * SDK domain model for master password policy requirements.\n * Defines the complexity requirements for a user\\\'s master password\n * when enforced by an organization policy.\n */\nexport interface MasterPasswordPolicyResponse {\n /**\n * The minimum complexity score required for the master password.\n * Complexity is calculated based on password strength metrics.\n */\n minComplexity?: number;\n /**\n * The minimum length required for the master password.\n */\n minLength?: number;\n /**\n * Whether the master password must contain at least one lowercase letter.\n */\n requireLower?: boolean;\n /**\n * Whether the master password must contain at least one uppercase letter.\n */\n requireUpper?: boolean;\n /**\n * Whether the master password must contain at least one numeric digit.\n */\n requireNumbers?: boolean;\n /**\n * Whether the master password must contain at least one special character.\n */\n requireSpecial?: boolean;\n /**\n * Whether this policy should be enforced when the user logs in.\n * If true, the user will be required to update their master password\n * if it doesn\\\'t meet the policy requirements.\n */\n enforceOnLogin?: boolean;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl<UT> TypeId<UT> for MasterPasswordPolicyResponse
impl<UT> TypeId<UT> for MasterPasswordPolicyResponse
const TYPE_ID_META: MetadataBuffer
Source§impl VectorFromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for MasterPasswordPolicyResponsewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for MasterPasswordPolicyResponse
impl VectorIntoWasmAbi for MasterPasswordPolicyResponse
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
impl StructuralPartialEq for MasterPasswordPolicyResponse
Auto Trait Implementations§
impl Freeze for MasterPasswordPolicyResponse
impl RefUnwindSafe for MasterPasswordPolicyResponse
impl Send for MasterPasswordPolicyResponse
impl Sync for MasterPasswordPolicyResponse
impl Unpin for MasterPasswordPolicyResponse
impl UnsafeUnpin for MasterPasswordPolicyResponse
impl UnwindSafe for MasterPasswordPolicyResponse
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<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.