pub struct Settings { /* private fields */ }
Expand description
Set the values of settings
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn password_strength(self, value: i8) -> Self
pub fn password_strength(self, value: i8) -> Self
Assign a value to this setting
Sourcepub fn password_contains_numbers(self, value: bool) -> Self
pub fn password_contains_numbers(self, value: bool) -> Self
Assign a value to this setting
Sourcepub fn password_contains_special(self, value: bool) -> Self
pub fn password_contains_special(self, value: bool) -> Self
Assign a value to this setting
Sourcepub fn check_for_duplicates(self, value: bool) -> Self
pub fn check_for_duplicates(self, value: bool) -> Self
Assign a value to this setting
Sourcepub fn check_for_old_passwords(self, value: i64) -> Self
pub fn check_for_old_passwords(self, value: i64) -> Self
Assign a value to this setting
Sourcepub fn notify_security_by_mail(self, value: bool) -> Self
pub fn notify_security_by_mail(self, value: bool) -> Self
Assign a value to this setting
Assign a value to this setting
Sourcepub fn notify_security_by_notification(self, value: bool) -> Self
pub fn notify_security_by_notification(self, value: bool) -> Self
Assign a value to this setting
Assign a value to this setting
Sourcepub fn notifiy_errors_by_notification(self, value: bool) -> Self
pub fn notifiy_errors_by_notification(self, value: bool) -> Self
Assign a value to this setting
Sourcepub fn server_side_encryption(self, value: i8) -> Self
pub fn server_side_encryption(self, value: i8) -> Self
Assign a value to this setting
Sourcepub fn client_side_encryption(self, value: i8) -> Self
pub fn client_side_encryption(self, value: i8) -> Self
Assign a value to this setting
Sourcepub fn session_lifetime(self, value: u64) -> Self
pub fn session_lifetime(self, value: u64) -> Self
Assign a value to this setting
pub fn set_user_value(self, setting: UserSettingValue) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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