pub struct PasswordContext {
pub config: PasswordPolicy,
pub hash: fn(&str) -> Result<String, OpenAuthError>,
pub verify: fn(&str, &str) -> Result<bool, OpenAuthError>,
}Fields§
§config: PasswordPolicy§hash: fn(&str) -> Result<String, OpenAuthError>§verify: fn(&str, &str) -> Result<bool, OpenAuthError>Trait Implementations§
Source§impl Clone for PasswordContext
impl Clone for PasswordContext
Source§fn clone(&self) -> PasswordContext
fn clone(&self) -> PasswordContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PasswordContext
impl RefUnwindSafe for PasswordContext
impl Send for PasswordContext
impl Sync for PasswordContext
impl Unpin for PasswordContext
impl UnsafeUnpin for PasswordContext
impl UnwindSafe for PasswordContext
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