#[non_exhaustive]pub struct PasswordStatus {
pub locked: bool,
pub password_expiration_time: Option<Timestamp>,
/* private fields */
}
Expand description
Read-only password status.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.locked: bool
If true, user does not have login privileges.
password_expiration_time: Option<Timestamp>
The expiration time of the current password.
Implementations§
Source§impl PasswordStatus
impl PasswordStatus
pub fn new() -> Self
Sourcepub fn set_locked<T: Into<bool>>(self, v: T) -> Self
pub fn set_locked<T: Into<bool>>(self, v: T) -> Self
Sets the value of locked.
Sourcepub fn set_password_expiration_time<T>(self, v: T) -> Self
pub fn set_password_expiration_time<T>(self, v: T) -> Self
Sets the value of password_expiration_time.
Sourcepub fn set_or_clear_password_expiration_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_password_expiration_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of password_expiration_time.
Trait Implementations§
Source§impl Clone for PasswordStatus
impl Clone for PasswordStatus
Source§fn clone(&self) -> PasswordStatus
fn clone(&self) -> PasswordStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PasswordStatus
impl Debug for PasswordStatus
Source§impl Default for PasswordStatus
impl Default for PasswordStatus
Source§fn default() -> PasswordStatus
fn default() -> PasswordStatus
Returns the “default value” for a type. Read more
Source§impl Message for PasswordStatus
impl Message for PasswordStatus
Source§impl PartialEq for PasswordStatus
impl PartialEq for PasswordStatus
impl StructuralPartialEq for PasswordStatus
Auto Trait Implementations§
impl Freeze for PasswordStatus
impl RefUnwindSafe for PasswordStatus
impl Send for PasswordStatus
impl Sync for PasswordStatus
impl Unpin for PasswordStatus
impl UnwindSafe for PasswordStatus
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