pub struct PasswordHasherConfig {
pub algorithm: PasswordAlgorithm,
pub bcrypt_cost: u32,
}Expand description
密码哈希器配置
Fields§
§algorithm: PasswordAlgorithm密码哈希算法
bcrypt_cost: u32bcrypt 成本因子
Trait Implementations§
Source§impl Clone for PasswordHasherConfig
impl Clone for PasswordHasherConfig
Source§fn clone(&self) -> PasswordHasherConfig
fn clone(&self) -> PasswordHasherConfig
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 PasswordHasherConfig
impl Debug for PasswordHasherConfig
Auto Trait Implementations§
impl Freeze for PasswordHasherConfig
impl RefUnwindSafe for PasswordHasherConfig
impl Send for PasswordHasherConfig
impl Sync for PasswordHasherConfig
impl Unpin for PasswordHasherConfig
impl UnsafeUnpin for PasswordHasherConfig
impl UnwindSafe for PasswordHasherConfig
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