pub struct PasswordEncryptor { /* private fields */ }
Implementations§
Source§impl PasswordEncryptor
impl PasswordEncryptor
pub fn encrypt_password( &self, encryption_data: &EncryptionData<'_>, ) -> Result<String, Error>
pub fn validate_password( &self, encryption_data: &EncryptionData<'_>, encrypted_password: &str, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for PasswordEncryptor
impl Clone for PasswordEncryptor
Source§fn clone(&self) -> PasswordEncryptor
fn clone(&self) -> PasswordEncryptor
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PasswordEncryptor
impl RefUnwindSafe for PasswordEncryptor
impl Send for PasswordEncryptor
impl Sync for PasswordEncryptor
impl Unpin for PasswordEncryptor
impl UnwindSafe for PasswordEncryptor
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