pub struct AuthPassword {
pub password: String,
}Expand description
A struct that represents a well-formed password.
§Arguments
Please use new() to create a new instance of this struct.
§Errors
You will receive a FieldFormatError, if:
- The password is not between 1 and 72 characters.
Fields§
§password: StringImplementations§
Source§impl AuthPassword
impl AuthPassword
Sourcepub fn new(password: String) -> Result<AuthPassword, FieldFormatError>
pub fn new(password: String) -> Result<AuthPassword, FieldFormatError>
Returns a new Result<AuthPassword, FieldFormatError>.
§Arguments
The password you want to validate.
§Errors
You will receive a FieldFormatError, if:
- The password is not between 1 and 72 characters.
Trait Implementations§
Source§impl Clone for AuthPassword
impl Clone for AuthPassword
Source§fn clone(&self) -> AuthPassword
fn clone(&self) -> AuthPassword
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 AuthPassword
impl Debug for AuthPassword
Source§impl PartialEq for AuthPassword
impl PartialEq for AuthPassword
impl Eq for AuthPassword
impl StructuralPartialEq for AuthPassword
Auto Trait Implementations§
impl Freeze for AuthPassword
impl RefUnwindSafe for AuthPassword
impl Send for AuthPassword
impl Sync for AuthPassword
impl Unpin for AuthPassword
impl UnwindSafe for AuthPassword
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