Struct kanidmd_lib::credential::Password
source · [−]pub struct Password { /* private fields */ }
Implementations
sourceimpl Password
impl Password
pub fn new(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
pub fn verify(&self, cleartext: &str) -> Result<bool, OperationError>
pub fn to_dbpasswordv1(&self) -> DbPasswordV1
pub fn requires_upgrade(&self) -> bool
Trait Implementations
sourceimpl TryFrom<DbPasswordV1> for Password
impl TryFrom<DbPasswordV1> for Password
impl StructuralPartialEq for Password
Auto Trait Implementations
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more