pub struct WeakPasswordError {
pub message: String,
pub reasons: Vec<String>,
}
Expand description
Error information returned when a password is considered weak
Fields§
§message: String
Description of why the password is weak
reasons: Vec<String>
List of specific reasons the password was rejected
Trait Implementations§
Source§impl Debug for WeakPasswordError
impl Debug for WeakPasswordError
Source§impl Default for WeakPasswordError
impl Default for WeakPasswordError
Source§fn default() -> WeakPasswordError
fn default() -> WeakPasswordError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeakPasswordErrorwhere
WeakPasswordError: Default,
impl<'de> Deserialize<'de> for WeakPasswordErrorwhere
WeakPasswordError: Default,
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 PartialEq for WeakPasswordError
impl PartialEq for WeakPasswordError
Source§impl Serialize for WeakPasswordError
impl Serialize for WeakPasswordError
impl Eq for WeakPasswordError
impl StructuralPartialEq for WeakPasswordError
Auto Trait Implementations§
impl Freeze for WeakPasswordError
impl RefUnwindSafe for WeakPasswordError
impl Send for WeakPasswordError
impl Sync for WeakPasswordError
impl Unpin for WeakPasswordError
impl UnwindSafe for WeakPasswordError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.