pub struct PasswordData { /* private fields */ }Expand description
Contains password related information used by rules to perform password validation.
Implementations§
Source§impl PasswordData
impl PasswordData
pub fn with_password(password: String) -> Self
pub fn with_password_and_user( password: String, username: Option<String>, ) -> Self
pub fn new( password: String, username: Option<String>, password_references: Vec<Box<dyn Reference>>, ) -> Self
pub fn password(&self) -> &str
pub fn password_references(&self) -> &Vec<Box<dyn Reference>>
pub fn username(&self) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PasswordData
impl !Send for PasswordData
impl !Sync for PasswordData
impl !UnwindSafe for PasswordData
impl Freeze for PasswordData
impl Unpin for PasswordData
impl UnsafeUnpin for PasswordData
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