pub enum UserSettingValue {
Show 13 variants
PasswordStrength(i8),
PasswordContainsNumber(bool),
PasswordContainsSpecial(bool),
CheckForDuplicates(bool),
CheckForOldPasswords(i64),
NotifySecurityByMail(bool),
NotifySharesByMail(bool),
NotifySecurityByNotification(bool),
NotifySharesByNotification(bool),
NotifyErrorsByNotification(bool),
ServerSideEncryption(i8),
ClientSideEncryption(i8),
SessionLifetime(u64),
}
Expand description
User Setting Values
Variants§
PasswordStrength(i8)
PasswordContainsNumber(bool)
PasswordContainsSpecial(bool)
CheckForDuplicates(bool)
CheckForOldPasswords(i64)
NotifySecurityByMail(bool)
NotifySecurityByNotification(bool)
NotifyErrorsByNotification(bool)
ServerSideEncryption(i8)
ClientSideEncryption(i8)
SessionLifetime(u64)
Implementations§
Source§impl UserSettingValue
impl UserSettingValue
Sourcepub fn kind(&self) -> UserSettings
pub fn kind(&self) -> UserSettings
Return the name of the setting
Sourcepub fn password_strength(self) -> Result<i8, Self>
pub fn password_strength(self) -> Result<i8, Self>
Coerce the value of the setting to this setting
Sourcepub fn password_contains_numbers(self) -> Result<bool, Self>
pub fn password_contains_numbers(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Sourcepub fn password_contains_special(self) -> Result<bool, Self>
pub fn password_contains_special(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Sourcepub fn check_for_duplicates(self) -> Result<bool, Self>
pub fn check_for_duplicates(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Sourcepub fn check_for_old_passwords(self) -> Result<i64, Self>
pub fn check_for_old_passwords(self) -> Result<i64, Self>
Coerce the value of the setting to this setting
Sourcepub fn notify_security_by_mail(self) -> Result<bool, Self>
pub fn notify_security_by_mail(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Coerce the value of the setting to this setting
Sourcepub fn notify_security_by_notification(self) -> Result<bool, Self>
pub fn notify_security_by_notification(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Coerce the value of the setting to this setting
Sourcepub fn notifiy_errors_by_notification(self) -> Result<bool, Self>
pub fn notifiy_errors_by_notification(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Sourcepub fn server_side_encryption(self) -> Result<i8, Self>
pub fn server_side_encryption(self) -> Result<i8, Self>
Coerce the value of the setting to this setting
Sourcepub fn client_side_encryption(self) -> Result<i8, Self>
pub fn client_side_encryption(self) -> Result<i8, Self>
Coerce the value of the setting to this setting
Sourcepub fn session_lifetime(self) -> Result<u64, Self>
pub fn session_lifetime(self) -> Result<u64, Self>
Coerce the value of the setting to this setting
pub fn from_variant( variant: UserSettings, value: &str, ) -> Result<Self, ParseError>
Trait Implementations§
Source§impl Debug for UserSettingValue
impl Debug for UserSettingValue
Source§impl<'de> Deserialize<'de> for UserSettingValue
impl<'de> Deserialize<'de> for UserSettingValue
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<UserSettingValue> for SettingValue
impl From<UserSettingValue> for SettingValue
Source§fn from(value: UserSettingValue) -> Self
fn from(value: UserSettingValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserSettingValue
impl RefUnwindSafe for UserSettingValue
impl Send for UserSettingValue
impl Sync for UserSettingValue
impl Unpin for UserSettingValue
impl UnwindSafe for UserSettingValue
Blanket Implementations§
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